8,872 questions
Score of 0
0 answers
69 views
How do I extract attributes from a mail message with apple script? The scripts found on line are generating errors
Here is the problem: I have a mail rule that looks for certain email addresses or even domains and if triggered, invokes an AppleScript. The rule finds things just fine and invokes the AppleScript. It ...
Score of 0
0 answers
65 views
UI scripting within Shortcut stalls out when UI takes too long to load [duplicate]
I have written a Shortcut that incorporates Applescript to navigate the UI of MacOS's System Settings. In a few places throughout where I need to wait for a UI element to load, I run a version of:
...
Score of 1
1 answer
71 views
How to make AppleScript retrieve mail message attributes
Trying this approach:
set counter to 1
repeat with each_message in mailbox "INBOX" of account "iCloud"
set message_ref to (a reference to each_message)
set ...
Advice
0
votes
5
replies
80
views
Suggestions for portfolio projects but not the obvious one
I just completed my SwiftUI and Swift tutorials and some more courses, in short I am whole ready to make a app for iOS but the issue is its for my portfolio but when I am asking AI or even googling ...
Advice
0
votes
2
replies
98
views
Simple autoclick script for MacOS
I normally use this simple autoclicker script with autolt in windows. It doesn't need coordinates. I simply put the mouse where it is needed and run the script. It's exactly like this:
Main()
Func ...
Score of -1
2 answers
83 views
How to get multiple properties from "every item" in AppleScript
The code below gets me the comments of a list of files:
tell application "Finder"
set targ to (path to desktop folder) as alias
get comment of every item of targ
end tell
Now, I also ...
Score of 0
0 answers
50 views
Solving a problem with overlayed enumerations for use in an AppleScript dictionary
I adding AppleScriptability to an existing application (Find Any File) and painted myself into a corner by using effectively overlapping enumerations for the same property.
It's like this:
The first ...
Score of 0
2 answers
67 views
AppleScriptable code: Which objectSpecifier for objects that appear in multiple classes as elements?
I am making my ObjC app scriptable.
I have a custom scriptable class A that is used as <element> by several other scriptable classes (B, C, …). And some of these classes share the same A class ...
Score of 0
3 answers
128 views
AppleScript create an alias file object from a posix path
I need to get Finder comments from various files, using a shell script. Since both Spotlight and EAs are unreliable, e.g. when the file is on an external volume, I want to use an `osascript` command ...
Score of 0
2 answers
73 views
AppleScript: how to wait for a document to be closed?
I have an AppleScript that opens a file in Preview for inspection, and I would like the script to wait for the document to be closed by the user before continuing. I'm struggling and couldn't find a ...
Score of 0
2 answers
328 views
"<Application> is not allowed assistive access" on AppleScript application, despite enabled setting
I wrote an AppleScript that automates selection of my wireless soundbar (AirPlay) as the sound output:
tell application "System Events"
tell process "Control Center"
...
Score of 1
1 answer
61 views
Python AppleScript module fails: AttributeError: 'str' object has no attribute '_unpackresult'
I have been using the AppleScript module in Python for some time now, but its latest version is refusing to work on any but the most trivial code. This is the Python script:
#!/opt/local/bin/python3
...
Score of 1
1 answer
81 views
Cannot set track details in macOS Music with AppleScript [closed]
I record music at home and regularly need to add tracks created with GarageBand to Music. This requires me to manually set the artist, album, genre, year, & artwork so I'm trying to write an ...
Score of 0
0 answers
85 views
"Paste" menu item is disabled when run app via applescript with administrator privileges
When running the application through apple scripts with administrator rights, the menu item "Paste" is disabled on any input fields. For example
do shell script "/Applications/Safari....
Score of 1
0 answers
311 views
AppleScript Issue with current track in Apple Music
I have upgraded to macOS 26 and got this strange error with AppleScript: current track doesn't work any more for streaming content, it works only for downloaded songs in user's library.
tell ...