• 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
Can not get "item" from "position"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can not get "item" from "position"


  • Subject: Can not get "item" from "position"
  • From: Andrei Tchijov <email@hidden>
  • Date: Wed, 4 Apr 2007 11:40:40 -0400

I though I was getting hang of AS, but it looks like I was wrong...

When I am running following :

tell application "Finder"
set targetWindow to the front window
position of targetWindow
end tell

I am getting nice result 

{105, 102}

Now, I want to get to separate items of "position".  I though that the way to do it is 

tell application "Finder"
set targetWindow to the front window
item 1 of position of targetWindow
end tell

But it does not work. I am getting error message :

Can't get item 1 of position of Finder window ...



What am I doing wrong? 

Very best regards,

Andrei Tchijov
Leaping Bytes, LLC
 _______________________________________________
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

  • Follow-Ups:
    • Re: Can not get "item" from "position"
      • From: Emmanuel <email@hidden>
    • Re: Can not get "item" from "position"
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Sort a List with Integers & Letters
  • Next by Date: Re: Can not get "item" from "position"
  • Previous by thread: Re: What value is an empty "File type"?
  • Next by thread: Re: Can not get "item" from "position"
  • Index(es):
    • Date
    • Thread