Good Day,

Just so happened I looked at the list today! The problem is that in Tell 
Commander AppleScript does not know the object you can either wrap the entire 
script in 

Tell application “VoiceOver”
…
End Tell 

Or at the beginning use the use clause to say you are working with VoiceOver 
throughout the script.
use  application “VoiceOver” 

Are you thinking of adding in a dialog to ask if the mouse found the correct 
point to click?


> On Feb 24, 2015, at 16:08, Jürgen Fleger <apple-engl...@fleger.net> wrote:
> 
> Hi Jonathan,
> 
> it’s a while ago but I hope you’ll support me again.
> 
> I tried the following script:
> 
> tell commander
>       perform command "move mouse pointer to voiceover cursor"
>       delay 1
> end tell
> output mouse summary
> tell mouse cursor
> click twice
> End Tell 
> 
> Unfortunately it didn’t work. Script Editor showed an error message saying it 
> expected end of line but found an identifier. Could you try it once more and 
> see if there is anything wrong with the script? If it works correctly I’m 
> able to change it to right click.
> 
> Thanks and 
> all the best
> Jürgen
> 
> 
> 
> 
> 
> 
>> Am 11.01.2015 um 18:39 schrieb Jonathan C Cohn <jon.c.c...@gmail.com>:
>> 
>> There is actually an option for a double click with the VO “mouse cursor” 
>> object 
>> 
>> I tested the below and it seems to work for me.
>> tell commander
>>      
>>      
>>      perform command "move mouse pointer to voiceover cursor"
>>      delay 1
>>      
>> end tell
>> output mouse summary (*
>> Above output satement should be what control+option+F5 outputs.
>> *)
>> tell mouse cursor
>> click twice
>> End Tell 
>> 
>> The methods available for the mouse cursor are:
>> click (once,twice,thrice) with (left, button right) button)
>> press
>> release
>> 
>> The mouse cursor object also has a property that I believe is read only 
>> called location. Though there are other apple script libraries that allow 
>> you to manipulate the mouse.
>> HTH
>> 
>> Jonathan Cohn
>> 
>> 
>> 
>> 
>> 
>>> On Jan 10, 2015, at 04:27, Jürgen Fleger <apple-engl...@fleger.net> wrote:
>>> 
>>> Hi,
>>> 
>>> I tried to extend an Apple Script from performing a cingle left mouse click 
>>> to perform a double left mouse click. It does perform the double mouse 
>>> click as far as I can tell it from my ears. Unfortunately it doesn’t work 
>>> lik a double click.
>>> Example: If I go to a file, route the mouse cursor there manually by 
>>> pressing VO + CMD + F5, press then VO + Shift + Space twice, it works fine 
>>> to open the file.
>>> But if I use the following script it sounds as if it performs a double 
>>> mouse click but the file doesn't open. Here’s the script:
>>> 
>>> tell application "VoiceOver"
>>>     tell commander
>>>             perform command "move mouse pointer to voiceover cursor"
>>>             delay 1
>>>             perform command "click mouse"
>>>             delay 0.3
>>>             perform command "click mouse"
>>>     end tell -- commander
>>> end tell — VoiceOver
>>> 
>>> So, does anybody sees why the script doesn’t work the way I want it to?
>>> 
>>> Thanks and all the best
>>> Jürgen
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "MacVisionaries" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to macvisionaries+unsubscr...@googlegroups.com.
>>> To post to this group, send email to macvisionaries@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/macvisionaries.
>>> For more options, visit https://groups.google.com/d/optout.
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "MacVisionaries" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to macvisionaries+unsubscr...@googlegroups.com.
>> To post to this group, send email to macvisionaries@googlegroups.com.
>> Visit this group at http://groups.google.com/group/macvisionaries.
>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "MacVisionaries" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to macvisionaries+unsubscr...@googlegroups.com.
> To post to this group, send email to macvisionaries@googlegroups.com.
> Visit this group at http://groups.google.com/group/macvisionaries.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

Reply via email to