• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: newbie question
      • From: Mr Tea <email@hidden>
    • Re: newbie question
      • From: John Delacour <email@hidden>
    • Re: newbie question
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: URL Access Scripting
  • Next by Date: [ANN] PreFab UI Browser 1.0.1
  • Previous by thread: Re: Getting the current selection in photoshop - crop
  • Next by thread: Re: newbie question
  • Index(es):
    • Date
    • Thread