OmarKN Posted December 31, 2015 Share Posted December 31, 2015 (edited) Hi and good day, To launch Tex-Edit Plus I thought was a child's play, so I have a trigger then a working Apple Script: ----- tell application "Tex-Edit Plus" activate set bounds of front window to {400, 810, 1280, 1260} end tell ----- but without success. Anyone can see the reason why? / with best regards, Omar K N Stockholm, Sweden Edited December 31, 2015 by OmarKN Link to comment
vitor Posted December 31, 2015 Share Posted December 31, 2015 Please open the debugger, and post the output after running the workflow. In addition, please post your workflow so we can better assess where the problem may be. Link to comment
OmarKN Posted December 31, 2015 Author Share Posted December 31, 2015 Hi and good day Vítor, This is the debugger message: Starting debug for 'Test Workflow1' [iNFO: alfred.workflow.trigger.hotkey] Processing output 'alfred.workflow.action.script' with arg '' Sorry, don't know how to upload a workflow, but what I have is a Hotkey, then a /bin/bash Apple Script: tell application "Tex-Edit Plus" activate set bounds of front window to {400, 810, 1280, 1260} end tell with best regards + happy new year! Omar K N Stockholm, Sweden Link to comment
deanishe Posted December 31, 2015 Share Posted December 31, 2015 Sorry, don't know how to upload a workflow, but what I have is a Hotkey, then a /bin/bash Apple Script: tell application "Tex-Edit Plus" activate set bounds of front window to {400, 810, 1280, 1260} end tell What is a "/bin/bash Apple Script"? That sounds like a problem. Link to comment
OmarKN Posted December 31, 2015 Author Share Posted December 31, 2015 Hi and good day Deanishe, It's "Language /bin/bash" in the context menu of Alfred. Or should I choose: osascript(AS) ? / with best regards, Omar K N (No idea at all here!) Link to comment
deanishe Posted December 31, 2015 Share Posted December 31, 2015 If you're trying to run AppleScript, you need to set the language to AppleScript, which is indeed the "AS" in /usr/bin/osascript (AS). So, yeah, use that instead. Link to comment
OmarKN Posted December 31, 2015 Author Share Posted December 31, 2015 hi D. ok found the mistake: When I added: make new window - everything was fine, so here is the script: ---- tell application "Tex-Edit Plus" activate make new window set bounds of front window to {328, 577, 1264, 1102} end tell ---- / with best regards + have a happy new year! Omar K N Stockholm, Sweden 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