Action
filelink test
Posted by armenotan,
Last update
over 3 years ago
- Unlisted
file link opening test
Steps
-
script
function openfileURL (url) { let fileURL = decodeURI(url.slice(7)); let method = "execute"; let script = `on execute(fileURL) tell application "Finder" to open fileURL as POSIX file end execute`; let runner = AppleScript.create(script); runner.execute(method, [fileURL]); } url = draft.content; openfileURL(url);
Options
-
After Success Default Notification Info Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.