Re: Handling Folders for Parent Path Reporting
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.