Efty.Edge Posted April 13, 2013 Share Posted April 13, 2013 Hi. Currently i only use applescript. I have no idea from bin/bash programming. So can someone please tell me how to put an keyword argument into a usr/bin/osascript variable to use it in the script!? I try something like this... KEYWORD ARGUMENT: yd update Script: if {query} = "update" then ... Thanx in advance. Efty Link to comment
_mk_ Posted April 13, 2013 Share Posted April 13, 2013 Try it with: set myVar to "{query}" if myVar is "update" then ... end if Link to comment
Efty.Edge Posted April 13, 2013 Author Share Posted April 13, 2013 Hi _mk_ Thank you! It's really simple. So excuse me i have to do a double Facepalm... Efty Link to comment
Carlos-Sz Posted April 13, 2013 Share Posted April 13, 2013 (edited) I use to add “as text” explicitly, just in case (some workflows don’t work as expected without it): Set myVar to “{query}” as text Edited April 13, 2013 by Carlos-Sz Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now