newbie question
newbie question
- Subject: newbie question
- From: Jonathan Brassow <email@hidden>
- Date: Fri, 28 Feb 2003 14:14:46 -0600
I hope this is an easy question that someone can help me with...
Why does this work..
-- specifying app name
tell application "Finder"
set pos to the position of the first window
end tell
display dialog (("(" & first item of pos as string) & ", " & last item
of pos as string) & ")"
and not this...
set bah to "Finder"
-- specifying app name through a var
tell application bah
set pos to the position of the first window
end tell
display dialog (("(" & first item of pos as string) & ", " & last item
of pos as string) & ")"
In the first chunk of code, the position property of the first window
is understood, but in the second chunk, Applescript thinks that
position is a variable - not a property.
I'm not sure how to resolve this issue, nor do I understand what is
going wrong.
Any thoughts?
brassow
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.