another why
another why
- Subject: another why
- From: louie <email@hidden>
- Date: Wed, 18 May 2011 14:17:38 -0700
If I save the below script as a scpt and try to run it using a keystroke defined as script from voice over it does not work. The script will start and the stand by message is heard. The prompt messages are not heard. If I save the script as a application every thing works. I have other scripts that I save as script and assign keystrokes to them and they work.
Anyone know why?
(*
I would like to thank hamsoftengineering for MouseTools.
http://www.hamsoftengineering.com
apple script name
crawlConfiguration.scpt
Set the right left, the up down and the stet points on the screen where the mouse will start from.
set the hight and width of the screen in pixels.
author
Richard L. Most better known as Louie
email@hidden
*)
tell current application
say "Configure starting points"
set rightLeft to do shell script "cat ~/.rl"
set rightLeftStep to do shell script "cat ~/.rls"
set upDown to do shell script "cat ~/.ud"
set upDownStep to do shell script "cat ~/.uds"
set width to do shell script "cat ~/.rlw"
set hight to do shell script "cat ~/.udh"
set rightLeft to the text returned of (display dialog "right left start point" default answer rightLeft)
set rightLeftStep to the text returned of (display dialog "right left step" default answer rightLeftStep)
set upDown to the text returned of (display dialog "up down start point" default answer upDown)
set upDownStep to the text returned of (display dialog "up down step" default answer upDownStep)
set width to the text returned of (display dialog "width in pixels" default answer width)
set hight to the text returned of (display dialog "hight in pixels" default answer hight)
do shell script "echo " & rightLeft & " > ~/.rl"
do shell script "echo " & rightLeftStep & " >~/.rls"
do shell script "echo " & upDown & " >~/.ud"
do shell script "echo " & upDownStep & " >~/.uds"
do shell script "echo " & width & " > ~/.rlw"
do shell script "echo " & hight & " > ~/.udh"
say "configuration completed"
end tell
louie
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden