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

applescript

  1. N

    AppleScript - Toggle File Sharing "On/Off"

    Not sure if since the post-System Settings from System Preferences change in the previous macOS release the command invoke in AppleScript has changed, but tried to Google it and couldn't find how to write a simple AppleScript to toggle the File Sharing "On/Off" any help would be appreciated, thanks.
  2. T

    Adjusting Color Filter Intensity via Terminal or Shortcuts on macOS

    Hi everyone, I'm looking to adjust the intensity of color filters on my Mac more precisely than what's offered in System Preferences (Accessibility->Display->Color Filters near the bottom), preferably using the Terminal or Shortcuts app. I aim to automate or quickly change settings for...
  3. B

    AppleScript for right mouse click - save as in Chrome

    I have been trying to piece together an AppleScript to save images or videos from imgur.com, but I haven't had much success so far. My knowledge of AppleScript is very basic so the fix is probably something simple. I figured out the coordinates of where the cursor are when I load a video on...
  4. RazorBackXX

    how do I run this AppleScript in photos

    hey my friends, my iCloud Photos library is having serious issues downloading the originals from the iCloud Photo Library. I did two factory resets & signed in & out of iCloud. I have the m1 Mac & high speed internet over 100mb download & upload & I'm only downloading 1 item every hour. so I did...
  5. W

    How can I do things in Apple-Script? [MERGED]

    Hi Everyone, Where can I find good tutorials and example files for Apple-Script? Thanks!
  6. W

    Apple-script Exported (compiled) as Application not running on another MacOS

    I have written a simple Apple-script on my MacOS 12, tested and running fine, (Apple-script as well as Exported Application file). When I transfer this complied .app file, it refuse to work on another MacOS. I can still run the same copied .scpt file opening and with play button on another...
  7. C

    Can you customize behavior of the "hide menu bar" setting?

    Hi friends! I'm looking to see if it's possible to fix one of my biggest annoyances in macOS right now. I have a 14-inch notched MacBook Pro, where it makes sense to have the menu bar always visible (even in full screen apps). However, I use the Mac either docked or connected to a 16:9 monitor...
  8. E

    macOS AppleScript - Active Pages Doc Rename issue. Hack job works. Obvious fix? Recursive or Relative Path issue?

    Ok, not sure if this correct area - its an AppleScript Pretty simple. It looks at a sampleSpreadsheet (Numbers), checks the values of Cells E2 and B2. Cell E2 is a "pop-up menu" data format (2 values right now: dropDownValue1 and dropDownValue2). B2 cell is text data format. If E2 is...
  9. M

    macOS How to use Adobe Illustrator executeMenuCommand with AppleScript?

    Hello, How can I write AppleScript to communicate with Adobe Illustrator using "executeMenuCommand" (javascript command)? https://ten-artai.com/illustrator-ccver-22-menu-commands-list/ I tried: tell application "Adobe Illustrator" do JavaScript "app.executeMenuCommand("Expand3");" end tell...
  10. L

    How to make app command run automatically on login?

    can't find a better place to post this but my issues is ... that I have this program that needs to be manually run and I want to have a function of the app run automaticly everytime I login. I have no experience with AppleScrit, shells scripts, I have used Automator a few times for stuff. I lost...
  11. H

    Batch Rename Subfolders with Parent Folder name in directory

    Is there a way to automate this? I want to select the Parent Folder and have the automation append the name of the container folder to the beginning of the sub folders. See me screenshots attached of a before/after demo. TO I have little background knowledge on this, but I would imagine...
  12. N

    macOS AppleScript & bit.ly URL Shortening

    Hello, I'm new to AppleScript Trying to write a script that will: 1. Select and copy the current Safari URL 2. Send it to bit.ly for URL Shortening 3. Copy the result to the clipboard I've come up with this so far: Unfortunately the result I'm getting on the clipboard is this whole line...
  13. G5Unit

    Duplicate photos; merging metadata; demystifying Photos.app and many other questions

    TLDR: Current main goal is to have a photo library that only contain the highest quality version of a photo that I have, along with the correct metadata (time captured; GPS, camera if possible). Hide/tag all non-photos (art/memes/etc). I have already done a lot of manual work, but moving...
  14. W

    macOS Please Explain Difference Between .AppleScript & .App

    I seem to have have the bug and am enjoying exploring the AppleScript stuff, ok, so I am probably 20+ years late to the partyb :) Having lost some practice code through deleting the wrong stuff, I need to understand some differences here. .applescript and .scrpt file When saving the file as...
  15. W

    Resolved Adding Icons To Dialogs From Resources

    I have placed an icon in the Resources folder and use that on some dialog like this set appTitle to "My-App" set dialogiconPath to path to resource "dialog.icns" in bundle (path to application appTitle) Question: When I try and run this from within Script Debugger it falis because path to...
  16. W

    Resolved Sharing Apps With Friends Question

    I'm liking the idea of now sharing a few of my workflow scripts with friends but I would rather save them as as App rather than send them the script. I have just downloaded the Script Debugger Trial version to try and I see you can create an App or Extended App. Before I get carried away, I...
  17. 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...
  18. 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...
  19. 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...
  20. 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...