Skip to content

knorrium/ruby-applescript-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruby-applescript-server

Execute AppleScript remotely over HTTP

usage

Install the dependencies

bundle install

Run the server

ruby server.rb

Send a POST request with the script parameter and the actual script you want to execute

curl -X POST --data "script=tell%20application%20%22iTunes%22%0D%09activate%0Dend%20tell" http://localhost:9494/execute

If the execution was OK, you should get the following response:

{"status":"ok", "message": "AppleScript"}

Otherwise (usually when there is a syntax error), you should receive an error message:

{"status":"error", "message": "error executing script: 43:46: syntax error: Expected “tell”, etc. but found identifier. (-2741)"}

About

Execute AppleScript remotely over HTTP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages