jhncbrwn Posted May 10, 2014 Share Posted May 10, 2014 If I run the script below in Applescript Editor when VLC is not running, nothing happens, this is the result that I expect. However when I run the same script as part of a workflow in Alfred, VLC Launches. Any suggestions as to why the result is different in the two applications and what I need to do to get the desired result in Alfred? --set q to "{query}" set q to 300 set vlcrunning to "" tell application "System Events" if (get name of processes) contains "VLC" then set vlcrunning to true end if end tell if vlcrunning is true then tell application "VLC" --set audio volume to 512 set audio volume to q end tell end if Thanks in advance for your help. Jhn Link to comment
deanishe Posted May 11, 2014 Share Posted May 11, 2014 It behaves as expected on my machine (i.e. doesn't start VLC if it isn't running). Link to comment
jhncbrwn Posted May 12, 2014 Author Share Posted May 12, 2014 Hi Deanishe, Thanks for checking, any idea why it doesn't behave the way it should on my machine? Link to comment
deanishe Posted May 12, 2014 Share Posted May 12, 2014 Haven't the faintest idea, I'm afraid 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