passing multiple shell variables to ssh via applescript

Hi guys,

I keep getting this error when trying to assign multiple variables to an ssh applescript, i have done this before with other commands, i believe the error occurs at the last stage of the command:


osascript -e 'set volume 9'


Becuase when i take this out the script works, i'm assuming it is to do with the multiple sets of " " and ' ' but i really don't know ...

any suggestions or pointers?


Note: I am able to run applescripts remotely quite easily, but i want this script to work locally and be completely contained within this script for practice sake

i.e. so i learn, thanks guys

User uploaded file

User uploaded file

MacBook Pro, iOS 5.1

Posted on May 1, 2013 6:30 PM

Reply
2 replies

May 1, 2013 7:17 PM in response to Benjamyn

Posting scripts as screen shots is always a problem, first because it is not possible to turn the screenshot into a script and second because it is difficult to read especially chars like quotes.


Just giving your script a quick look the quotes at the end of set volume 9 appear suspicious but as I wrote it is hard to read.


regards


Message was edited by: Frank Caggiano - BTW I would definitely use quoted form of instead of trying to manually quote an expression like that. I would also break it up into multiple expressions to make it both easier to code and to debug.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

passing multiple shell variables to ssh via applescript

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.