I need to store the path to Chromium to use later in the script, however running set chromium to (POSIX path of (path to application "Chromium"))
in AppleScript Editor opens the application. How can I store the path to the application without causing the application to open. Hard coding the path worked, but I wanted to be able to find the application path instead.
AppleScript – Get the path to an application without opening it
applescriptpath
Related Question
- MacOS – Escaped path in AppleScript adds leading /
- MacOS – way to extract contents from AppleScript file without using AppleScript editor
- MacOS – How to get file path of user selected .icns file in applescript
- Applescript will not stop running
- Get AppleScript Path of Parent Folder
- MacOS – How to get rid of Applescript confirmation
- How to add a AppleScript file to the Finder toolbar to execute the AppleScript
- Get/Copy current Excel file’s path
Best Answer
Use Finder to get an application file object:
You can also get the bundle identifier with
id of app "Chromium"
.