dansays / homebridge-applescript

Applescript plugin for homebridge: https://github.com/nfarina/homebridge
20 stars 8 forks source link

Multiline AppleScript? #2

Open realdannys opened 8 years ago

realdannys commented 8 years ago

Hi,

As most AppleScript isn't on single line, how do you go about adding this to JSON? Is it possible?

rooi commented 8 years ago

Hi, I ran into the same thing. Any updates?

Nedervino commented 8 years ago

If you add the newline character \n within the JSON string it accepts this as a valid enter within your applescript code, allowing you to write entire scripts

bradleyrawleigh commented 7 years ago

Currently I save my scripts as an .app and refer to there location in Json file. Can you eleaborate on the process your suggesting? I can post the scripts I saved as app and my json file if that might help for you to explain. Thank for any advise and help!!