Jump to content

Launching app with Apple Script fails, why?


OmarKN

Recommended Posts

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 by OmarKN
Link to comment

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

 

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...