Loading...
Loading...
Compare original and translation side by side
Application('Finder').activate()opentell application "System Events" to click button "OK" of window "Main"Application('Finder').activate()opentell application "System Events" to click button "OK" of window "Main"osascript -e 'tell application "Finder" to make new folder at desktop'const app = Application('Safari'); app.activate(); app.documents[0].url = 'https://example.com';shortcuts run "My Shortcut" -i '{"input": "text"}'tell application "Automator" to run workflow "path/to/workflow"osascript -e 'tell application "System Events" to keystroke "a" using {command down}'osascript path/to/script.applescriptosascript -e 'tell application "Finder" to make new folder at desktop'const app = Application('Safari'); app.activate(); app.documents[0].url = 'https://example.com';shortcuts run "My Shortcut" -i '{"input": "text"}'tell application "Automator" to run workflow "path/to/workflow"osascript -e 'tell application "System Events" to keystroke "a" using {command down}'osascript path/to/script.applescript$ export APPLESCRIPT_PATH='/path/to/script'osascript $APPLESCRIPT_PATHnpm install osaconst OSA = require('osa'); OSA.runAppleScript('...')$ACCESSIBILITY_ENABLED=1$osascript_API_KEYtccutiltccutil reset AppleEvents com.example.app$ export APPLESCRIPT_PATH='/path/to/script'osascript $APPLESCRIPT_PATHnpm install osaconst OSA = require('osa'); OSA.runAppleScript('...')$ACCESSIBILITY_ENABLED=1$osascript_API_KEYtccutiltccutil reset AppleEvents com.example.apposascript -e 'script' 2>&1try { Application('Finder').activate(); } catch (e) { console.error(e.message); }shortcuts run "Name" --wait-for-resultsudo osascript -e '...'osascript -e 'script' 2>&1try { Application('Finder').activate(); } catch (e) { console.error(e.message); }shortcuts run "Name" --wait-for-resultsudo osascript -e '...'osascript -e 'tell application "Safari" to open location "https://example.com"' followed by 'tell application "Safari" to activate'shortcuts run "Resize Window" -i '{"app": "Finder", "width": 800}'Application('Shortcuts').run('Resize Window', {input: JSON.stringify({app: 'Finder'})})osascript -e 'tell application "Safari" to open location "https://example.com"'tell application "Safari" to activateshortcuts run "Resize Window" -i '{"app": "Finder", "width": 800}'Application('Shortcuts').run('Resize Window', {input: JSON.stringify({app: 'Finder'})})