Timeline for Double click in AppleScript
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 17, 2014 at 17:03 | comment | added | Matthieu Riegler |
There was a bug with click at on Mavericks. It works again on Yosemite.
|
|
Jun 11, 2014 at 14:20 | comment | added | Ray d'Inverno | Silly me - sorry. I have tried your double click program just to open a text document on the desktop but nothing happens. I have tried varying the delay, but still nothing. Are you abel to place the left hand corner of one finder window on the desktop in the middle of the icon for an rtf file, then find its position with tell application "Finder" to get the position of the front Finder window which gives you coordinates (x,y) and then open it with your double click program. Thanks for your help. If I can get this working then I should be able to do everything else I need. Ray | |
Jun 9, 2014 at 18:23 | comment | added | grg♦ | @Ray You're telling UVIWorkstation but you need to tell System Events to click. Don't modify anything in the script but the position (and the delay if necessary). | |
Jun 9, 2014 at 15:16 | comment | added | Ray d'Inverno | Thanks for your help. I want to open an application called UVIWorkstation and you have to double click on an input window to open the browser. I can find the coordinate position in pixels and I want to double click on this position. The code tell application "UVIWorkstation" click at {455, 149} delay 0.1 click at {455, 149} end tell leads to error "UVIWorkstation got an error: Can’t continue click." number -1708 I am having real trouble using the Ask Different editor. Every time I hit return it throws me out. Ray | |
Jun 9, 2014 at 15:06 | comment | added | Ray d'Inverno | Thanks for your help. I want to open an application called UVIWorkstation and you have to double click on an input window to open the browser. I can find the coordinate position in pixels and I want to double click on this position. The code tell application "UVIWorkstation" click at {455, 149} delay 0.1 click at {455, 149} end tell produces the error | |
Jun 8, 2014 at 0:56 | comment | added | njboot |
Testing this (I'm on rMBP as well) results in the following: error "System Events got an error: Can’t make {10, 10} into type list." number -1700 from {10, 10} to list
|
|
Jun 7, 2014 at 16:17 | comment | added | grg♦ | @Ian The dictionary says "in global coordinates"; not quite sure what this translates to, as {10, 10} is definitely not 10 pixels in on my retina display, but may be on a non-retina display (don't have one to test on)? | |
Jun 7, 2014 at 16:14 | comment | added | Ian C. | What units are the co-ordinates in? Pixels? | |
Jun 7, 2014 at 16:07 | history | answered | grg♦ | CC BY-SA 3.0 |