• 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: Finding folder from its id
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding folder from its id


  • Subject: Re: Finding folder from its id
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 23 Mar 2002 14:49:26 -0800

On 3/23/02 1:56 PM, "nick weldin" <email@hidden> wrote:

> Well at least you are getting the sort of results i am. If you direct
> it to the folder the folder is in then it finds it! Not much use if
> you don't know where it is already. You can search through nested
> folders by saying
>
> tell application "Finder"
> get (the first item whose id = 289345) of entire
> contents of folder "test" of startup disk
> end tell
>
> but if you ask it to
>
> get (the first item whose id = 289345) of entire contents of startup disk
>
> (which I know may be slow but should work)

No, not really. 'entire contents', even of a largish folder, is the most
well-known and notorious Finder bug of all. It will never, ever work for a
hole hard disk. Just forget you ever heard of it. Pretend it's not in the
Finder dictionary. It's kaput. (Usually, it just gives a faulty result and
smiles. so you're lucky that it just poops out with a whole disk's worth.)

As I explained, instead of recording the Finder id, record the file itself
'as alias' as a script property. It doesn't have to be by "choose folder" -
if you know what the file is (first time) just set a script property to it
as alias, and it will _always_ be found on the computer. Put in an error
lock in case someone trashes it.

--
Paul Berkowitz
_______________________________________________
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: Finding folder from its id
      • From: Applescript User Lewis <email@hidden>
References: 
 >Re: Finding folder from its id (From: nick weldin <email@hidden>)

  • Prev by Date: Re: Filter for folders
  • Next by Date: Re: what is the best way to 'unset' a variable
  • Previous by thread: Re: Finding folder from its id
  • Next by thread: Re: Finding folder from its id
  • Index(es):
    • Date
    • Thread