• 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
Re:Re: [AS] Getting some Finder windows properties under 10.4.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:Re: [AS] Getting some Finder windows properties under 10.4.6


  • Subject: Re:Re: [AS] Getting some Finder windows properties under 10.4.6
  • From: Emile Schwarz <email@hidden>
  • Date: Sat, 22 Apr 2006 14:43:49 +0200



email@hidden wrote:
Subject: Re: [AS] Getting some Finder windows properties under 10.4.6...
To: AppleScript Users List <email@hidden>
Message-ID: <p06002001c06ea69ae667@[10.0.1.3]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

At 11:31 AM +0200 4/20/06, Emile Schwarz wrote:

get id of every window
{35, 16, 37, 5, 18, 14, 4, 3, 6, 7, 9, 10, 11, 12, 13}

I get an error for window id: 35, 16, 37, but not 5:

return name of window 5 -- returns me the name of an actually open Finder folder...


Emile, I'm afraid you're the victim of a confusion. "id" is not "index". "window 5" means "the fifth window", or "window whose index is 5". For the window whose id is, say, 35, you have to write:

window id 35

ids are unique and persistent, it's the only way to store a non-ambiguous representation of an object.

indexes may vary or not, depending on the application. Usually "window 1" means the front window, obviously that's variant.

Thanks for the answer.

Sometimes (I feel that) I walk a mile beside (more or less outside of) my shoes ;)


Emile


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: QuarkXPress - delimit table defaults?
  • Next by Date: Re: Apply User and Groups to Items in a Folder
  • Previous by thread: Re: QuarkXPress - delimit table defaults?
  • Next by thread: newbie question: AppleScript and hashbang
  • Index(es):
    • Date
    • Thread