269 questions
1
vote
1
answer
47
views
Calling a angular frontend from applescript to select an item from a list
I have an angular server running in the localhost, and I want to call it from Applescript. The scenario is I have a list of tweet IDs inserted as a list in angular, and it's running as localhost. Now, ...
0
votes
0
answers
31
views
CSV delete all rows in the bottom 75% of lowest readings from column 3
I would like to delete all rows in a csv = 75% of the lowest readings from column 3 . Is this possible using some thing with “awk -F ',' '$3>= ….” Or would I have to sort the column with eg “sort -...
0
votes
1
answer
216
views
Make Menu Item Do Something AppleScript
I'm writing a program in AppleScript that creates a menu in the menu bar on MacOS. This is my code:
use AppleScript version "2.4"
use scripting additions
use framework "Foundation"
...
0
votes
0
answers
101
views
Replace whitespace by backslashes using AppleScript
I'm using the following command to get a mount point from a disk:
do shell script "diskutil info /dev/disk4s1 | sed -n 's/.*Mount Point: *//p'"
however if I have two disks with the same name ...
-1
votes
1
answer
174
views
Capturing A CheckBox Toggle State In An Xcode AppleScript Project
I have been trying to figure this out for a few days now and still cannot understand how this works.
I have created a new AppleScript Project in Xcode version 13.4.1 and added a CheckBox and a Button. ...
1
vote
1
answer
183
views
how to identify a mounted external volume?
I have the following to identify if a volume is mounted:
on volumeMounted:aNotification
set volumeName to (NSWorkspaceVolumeLocalizedNameKey of aNotification's userInfo) as text
if ...
0
votes
1
answer
243
views
How to open list of the URLs in certain specified browser?
Currently, I am trying to open list of the URLs in the certain specified browser. I tried following without success. If anybody knows how to do it, please help.
-- script: Open list of URls in certain ...
0
votes
2
answers
1k
views
Privacy tab using AppleScript
I am trying to access the Privacy -> Accessibility tab using Applescript. Can anyone help me?
I need to display a list of all the programs in the section:
Accessibility
Camera
Microphone
Photos
...
0
votes
1
answer
1k
views
AppleScript -- Menu Item in the Menu Button popup is not selectable while using keystroke return or (key code 36) command
I have gone through stack overflow, this might seem like a duplicate question but this is more like an extended question to the existing issue!
I am facing a very strange issue, in my application we ...
0
votes
1
answer
907
views
AppleScript insert text into Microsoft Word document
I am new to MacOS standalone application development and I am working on fixing issues in our existing application. Our application access the Microsoft Word document and perform insertion of text ...
0
votes
0
answers
61
views
How to change the color and state of a button
I have a button in the style "Recessed" I would like that when I click on it it keeps its active state with its appearance something I see in applications with Sidebar on macOS, as in the image below, ...
0
votes
1
answer
69
views
How to relaunch the moved application to a new location?
I'm trying to simulate what Lets Move does, that is, when the user runs the application he checks to see if the application is running from within the Applications folder if he is not, he displays an ...
0
votes
1
answer
531
views
Call a method or function from Objective-c in AppleScript
I'm trying to use LestMove to be more precise
the second implementation method where it says:
Option 2:
Copy the following files into your project:
PFMoveApplication.h
PFMoveApplication.m
If your ...
0
votes
1
answer
219
views
Trying to translate Object-C into Applescriptobjc for instagram post finder
So I have this Objective-C code it does something that I had been trying to wrap my head around with plain Applescript, and also tried and failed with some python that I tried (and failed at). I'd ...
0
votes
1
answer
398
views
How to Mount Multiple EFI Partitions?
I’m trying to create an Applescript-Objc to mount multiple EFI partitions, but I’m not able to mount the EFI partitions on external drives only those on the internal disk,
what I've done so far is ...
0
votes
1
answer
197
views
Applescript does not run user command
I need the applescript to run tabset test command to change the name of the current tab of iTerm.
-- Launch iTerm and log into multiple servers using SSH
tell application "iTerm"
activate
...
0
votes
2
answers
614
views
Using Cocoa with AppleScript
Having some trouble calling Cocoa methods from within AppleScript. For example, running the following snippet of code produces an error when ran using osascript:
set sharedWorkspace to call method "...
0
votes
1
answer
100
views
How to create an ImageView as drag and drop?
I would like to know how to make an ImageView drag and drop,
I will drag a certain file to an ImageView and it will render
an action.
I know I can use the code below in a Script Editor and save it as ...
0
votes
2
answers
279
views
How to perform a subroutine every 5 seconds?
I have a subroutine to check if a disk is mounted,
I would like to know how do I make this subroutine always run every 5 seconds.
thanks in advance!
on checkMyDiskIsMounted()
tell ...
0
votes
0
answers
87
views
AppleScript in Xcode11 and Catalina
I am trying to make my ObjC application scriptable. I included .sdef file into my project, created appropriate classes, very simple, just one command. Anyway, Apple Script Editor can't read my ...
0
votes
0
answers
130
views
Animated Image with Applescript
when I run a display alert, or a system alert is displayed I get
realize there is a little animation, from the window displayed, is there any way to do this with an image
(ImageView) programmatically ...
0
votes
1
answer
307
views
How to change the selection color of a sidebar?
Is there any way to change the selection color of a sidebar item?
For example the default color of macOS 10.14.x dark theme is blue, would it be possible to change this color?
I took a look here: ...
0
votes
1
answer
135
views
How to show NSAlert using Sheet window in separate .XIB files?
I have a button to perform a task and if an error occurs during the process a warning is displayed using NSAlert "Sheet window"
in this moment I am using multiple .XIB files in a project, I can't ...
0
votes
1
answer
187
views
Use choose file with choose file sheet (as in NSOpenPanel)
I would like to know if there is a possibility to use choose file like "Choose file sheet" if the answer is yes could you give me an example?
0
votes
1
answer
543
views
Using Core Graphics to change an images colorspace profile using AppleScriptObjC
I already have some code that will do most of what I need using NSIMage and NSColorSpace. Unfortunatly I am trying to recreate a colorspace/profile change that happens in Photoshop, and it is a bit ...