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

applescript

  1. R

    Changing Photo Metadata in Apple Photos Using Filename Data

    I’m hoping someone here can help me with a bit of a tricky situation I’m facing with my Apple Photos library. During the import process, the date and time metadata for my photos got all messed up. The good news is that the correct date and time are encoded in the filenames of the photos. Here’s...
  2. j.tan

    macOS Curious issue with AppleScript and Mac OS Sonoma

    I’m new to AppleScript, and have been writing a script to prepend the current date to an existing file or folder name. The script appears to work well, except for a very specific instance. When using the script to rename a single text file (i.e. a file with the ‘.txt’ extension) on Mac OS Sonoma...
  3. reddrag0n

    macOS playing with automator or applescript in Snow Leopard

    this may or may not be already discussed, but how do i make an application press specific keys for functions in automator or applescript? aka once a program is launched, automator or applescript will see said program and press keys like "F2" and then "Enter" or that sort of thing... it's...
  4. K

    macOS Applescript to Change Pages Font Sizes

    I have some very long documents that is written with several font sizes intermingled throughout the text. For example some text in 14 pt and some text in 12 pt. How can I change one of the sizes without changing the other? For example suppose I want to change the 12 pt text to 14 pt and the 14...
  5. 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.
  6. 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...
  7. 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...
  8. 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...
  9. 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!
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...