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

applescript

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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.
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. blackxacto

    iOS Is it possible to create a keystroke to insert the $ last?

    I report amounts of money, very fast and under pressure on Twitter messaging. I cannot always remember to start w the $. If I think to start w $ I sometimes forget the total amount and must look back: "Now what was the total?" Is there a way to create a keystroke that would insert the $ at the...
  18. rickpoet

    Looking for mail.app script or automator action to copy specified mail message headers

    Hi, I'm looking for an AppleScript or Automator action(s) which would allow me to copy specified headers in a group of selected email messages in mail.app. Background - I run an online poetry magazine which takes submissions by email, I want to on a weekly basis copy all of the email addresses...
  19. Asu

    macOS Set url in Opera

    Simple question: how to tell Opera in AppleScript to load an URL? Thanks
  20. shaan104

    I want to prevent the Touch Bar from sleeping when left inactive

    I just bought a new MacBook with Touch Bar and when ever I'm watching something, or the Touch Bar is left inactive, it dims and sleeps which is really annoying to me. Is there any terminal command or apple script through which I can disable this feature. I searched all the settings and it isn't...