Apple Scripts
I have a Apple Mail Script I would like to use. Where would I store the script so when I set up a Mail Rule and click on use Apple Script, my script will show up?
:)
MacBook Air 13", macOS 10.15
I have a Apple Mail Script I would like to use. Where would I store the script so when I set up a Mail Rule and click on use Apple Script, my script will show up?
:)
MacBook Air 13", macOS 10.15
On Catalina, and with Script Editor, press option + File Save As… and navigate within you home folder to the following location:
home : Library : Application Scripts : com.apple.mail folder. Save your script bundle (.scpt) there.
Reference this location and script name in your Mail rule.
For solutions older than Catalina, you will create a new folder in the following location that you name Mail:
home : Library : Scripts : Applications
Then save your AppleScript in the Mail folder as a (.scptd) script bundle.
On Catalina, and with Script Editor, press option + File Save As… and navigate within you home folder to the following location:
home : Library : Application Scripts : com.apple.mail folder. Save your script bundle (.scpt) there.
Reference this location and script name in your Mail rule.
For solutions older than Catalina, you will create a new folder in the following location that you name Mail:
home : Library : Scripts : Applications
Then save your AppleScript in the Mail folder as a (.scptd) script bundle.
The folder ~/Library/Application Scripts exists in my Catalina 10.15.3 installation, and I did not create that folder, so it must be there.
Click on your Desktop to get Finder's attention, press shift+command+G to open the Go To Folder panel, and enter the following:
~/Library/Application Scripts/com.apple.mail
You should land inside that com.apple.mail folder in an open Finder window, where you can deposit your AppleScript .scptd script bundle.
Alternatively, Open Mail.app -> Preferences -> Rules and add or edit a rule.
For the action to perform, select Run AppleScript
Now in the second menu where you identify which rule to run, select 'Open In Finder'
This will take you directly to the folder that Mail.app is looking into for scripts to run
Thanks to both VikingOSX and Camelot for the suggestions. The issue is now solved
:)
You are welcome.
Hi Viking OSX :0
Thanks for the quick reply. I am using Catalina 10.15.3. I do not see Library:Application Scripts:com.apple.mail. I do see Library/Applications Support. Can I make the directory and if so, where?
:)
Apple Scripts