• 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: Handling Folders for Parent Path Reporting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling Folders for Parent Path Reporting


  • Subject: Re: Handling Folders for Parent Path Reporting
  • From: has <email@hidden>
  • Date: Sun, 5 Jan 2003 12:41:34 +0000

Gary Lists wrote:

I use the following to retrieve the "parent" folder information about files.

My problem is dealing with a folder itself, and its last colon. (As it is,
the only error is logical -- it reports itself and not its own parent.)

[snip]

Any reason for not using the Finder? It'd be much simpler.

on parentOf(anAlias)
tell application "Finder" to return ((container of item anAlias) as alias)
end parentOf

has
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
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.

  • Prev by Date: Re: Handling Folders for Parent Path Reporting
  • Next by Date: Re: Moving files from desktop to User folders
  • Previous by thread: Re: Handling Folders for Parent Path Reporting
  • Next by thread: Text file reading...
  • Index(es):
    • Date
    • Thread