Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

applescript

  1. W

    Resolved How To Convert AppleScript Progress Bar To Use In Xcode

    I have a small AppleScript which I would like to to put into a user interface so I have installed Xcode 13.4.1 with a new AppleScrip Project After about 5 days trying to work out why I cannot control drag say a button to the Deligates Cube because this is a bug I nearly gave up but I manged to...
  2. KingBuzzard

    macOS AppleScript For Multiple Safari Tabs And Mouse Click?

    Hey all, Complete noob to AppleScript here with a rather complex one: I would like automate a script that can do the following: 1. After launching, waits for 61 minutes without doing anything, then: 2. Opens Safari with 16 tabs (and 16 separate URLS) 3. Clicks a “Roll!” button on each of the...
  3. L

    First steps with AppleScript - Error message

    Hello! I would like to create a hotkey for "context menu" alias the "right click on mouse". Somebody wrote a script for that: https://forum.keyboardmaestro.com/t/click-mouse/15450 I have no experience with AppleScript. But I copied this into AppleScript. When I'm running it an error message pops...
  4. T

    macOS Applescript to set Photos "Places" from a GPS data exchange (GPX) file

    Here is a script I put together that will allow you load GPS locations into the the Mac Photos app from a GPS data exchange (GPX) file. (GPX is a standard XML format that contains longitude and latitude location data.) I wrote this in order to apply GPS data tracks generated on my iPhone using...
  5. LuizSiqueiraNeto

    Siri Shortcuts error - I'm trying to run an Applescript that uses "System Events"

    I'm trying to run an Applescript that centers the window with focus. The shortcut works well, but when I try to use voice command with Siri a "System Event" error occurs, apparently Siri does not have access authorization. Someone has already seen this problem. Translation of the error from...
  6. VideoBeagle

    macOS Using Applescript to Color Cells in NUMBERS

    I'm trying to take a list of Color Codes and spit out a chart with the colors actually visible. I'm trying the script* in this post from the Apple Support Forums: https://discussions.apple.com/thread/251970289 The script worked once on a sample.. but then not again (and it didn't work quite...
  7. R

    macOS AppleScript Syntax - Overwrite Folder

    I came across this fantastic AppleScript code that automates creating images from slides in Keynote. Each time it's run, it writes a new folder using the document name and appends that folder with a version number. I'd like to modify it so that it OVERWRITES the same folder, but I haven't been...
  8. haralds

    Apple Music Automated resaving of tracks

    I find a small percentage of tracks will not upload/match and result in an error on "Add to Library." Often this looks like a structure problem, Loading them in Fission and saving (as) them out will often fix the issue. But Fission does not support automation. Does anybody know of a music editor...
  9. O

    macOS Optimizing Applescript

    Hey, I'm looking to optimize this applescript, ideally with an idle handler, though I haven't been able to make that work all that well. Any help would be greatly appreciated. Thanks! local trackID tell application "Spotify" to activate -- launches spotify repeat while application "Spotify" is...
  10. srbNYC

    Automator help?

    I'm new to trying Automator—and failing miserably. After a calendar disaster a few months ago, I now like regularly to save a copy of the .ics file from my main calendar, replacing the earlier saved version. It seems like I should be able to build a Workflow or something (AppleScript?), but I...
  11. shankar2

    macOS This Applescript code works in Mojave but not in Big Sur MacOS.. please fix?

    Hi so I have this Applescript code that basically works this way: You drop an image file on the Applescript icon and it fills Mac's clipboard with the image's dimension and file name (html format). Now the problem here is that this code works on Mojave macos but not on Big Sur which I use. Here...
  12. A

    macOS Applescript: exporting numbers file to PDF

    I have the following code to print a pages file: tell application "Pages" set Doc to open PathFileDoel as alias set DocPDF to PathFileDoelPDF export Doc to file DocPDF as PDF close Doc end tell Is there a similar command to export a numbers...
  13. robertcoogan

    Renaming files sequentially with Automator

    I need to rename files sequentially in a series of folders. So each group of files within each individual folder should read... [folder a] FILE_01 FILE_02 FILE_03 ...and so on. Automator does a great job as long as I add the contents of each folder one at a time. I would like to add all of the...
  14. Z

    macOS Using Applescript to get name of current (random) desktop image

    I've been searching all over, and can't find code that actually works for this. My mom randomly rotates through ALL of her photos (from Photos app) on her desktop, and very often wants to know which pic she's looking at. I found some cool Applescripts that purport to do this, but it appears that...
  15. robertcoogan

    macOS AppleScript and Automator

    I'd like to learn AppleScript as I am a heavy user of Alfred and Automator. Is AppleScript still worth learning? Can anyone recommend some good books as well, Amazon has some, but they are old.
  16. Tucker28

    macOS AppleScript/Automator to move files to specific folders based on filenames

    Hello, I am trying to send certain files to specific folders based on filenames. Most things I want to do like this, I can do with Hazel, but not this just because of the sheer number of rules I would have to make. Hazel doesn't allow me to put wildcards on the move to section of the rule...
  17. dkaiser

    macOS Applescript automation help

    Hi i have tried a lot but my brain is not to complex to solve the puzzle. hope there is a clever mind in here that just say x2c cYx (=(=?=) solved ;) okay let me try to explain. i have x amount of names in a list. I only need to do changes in some of the names in the list (so when a specific...
  18. A

    macOS Applescript + Combine PDF's

    I want to write an AppleScript which combines 2 pdf's. I found on the internet that it can be done with a shell script. But, If my Mac doesn't want to do it. I don't know if I make a mistake in calling the script or if I make a mistake in my filenames (my homedirectory contains spaces). I tried...
  19. M

    Sleep/shutdown/mute timer for Mac: iWannaSleep 2.0

    Some of you may still remember my little sleep/mute/shutdown/... timer for Mac "iWannaSleep", which I wrote and released topping 16 years ago. Much to my surprise, it was included on many Shareware-CDs of Mac magazines from all around the globe (hey, the internet was not available / affordable...
  20. E

    macOS Cannot open a new Word document in Objective-C

    Hello, I have a task to open Microsoft Word and create a new document in Objective C. If I am running an Apple Script below in the Script Editor, it works fine and a new Microsoft Word document gets created: tell application "Microsoft Word" to make new document" BUT, if I am trying to call...