Re: trying out UI browser and example
Re: trying out UI browser and example
- Subject: Re: trying out UI browser and example
- From: Yvan KOENIG <email@hidden>
- Date: Sun, 6 Jun 2010 07:59:55 +0200
Le 6 juin 2010 à 02:23, John Baltutis a écrit :
On 6/5/10, Yvan KOENIG <email@hidden> wrote:
Le 5 juin 2010 ˆÝ 10:14, Yvan KOENIG a ˆ©crit :
Le 5 juin 2010 ˆÝ 10:02, Yuma Antoine Decaux a ˆ©crit :
tell application "Extra Suites"
set MouseLocal to get string of (ES mouse location)
end tell
display dialog MouseLocal
Extra Suites is unable to coerce its list as string but AppleScript
itself may do the trick.
This one works :
tell application "Extra Suites"
set MouseLocal to get (ES mouse location)
end tell
display dialog MouseLocal as text
display dialog ((item 1 of MouseLocal) as text) & ", " &item 2 of
MouseLocal
Of course you may also use :
tell application "Extra Suites"
set MouseLocal to get (ES mouse location)
end tell
display dialog MouseLocal as text
set {x, y} to MouseLocal
display dialog (x as text) & ", " & y
Shouldn't last line read:
display dialog (x as string) & ", " & (y as string)
As far as I know, text is supposed to be the universal class under
10.6.x
As far as I know, it's sufficient to coerce the first item to text
when we use concatenate.
It's the way these things behave under 10.4.x and 10.5.x
As the Intel inside machine which I used was returned to its owner, I
can't check under 10.6.x
Yvan KOENIG (VALLAURIS, France) dimanche 6 juin 2010 07:59:17
_______________________________________________
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