Re: File best practice questions
Re: File best practice questions
- Subject: Re: File best practice questions
- From: Thomas Summerall <email@hidden>
- Date: Thu, 10 Apr 2008 16:03:43 -0400
I've almost finished converting my applescript installer to use aliases and avoid paths wherever I can.
I have what I hope is the final challenge. I need to check to see if a folder ("Target Folder") exists, and if it does then delete it.
I have the containing folder of the target to delete as an alias chosen by the user (containerAlias). I know I can do something like:
if exists folder ((containerAlias as string) & "Target Folder") then ...
But if I do that then it seems like I lose the advantage of sticking with aliases.
Is there a way of adding a directory level to an alias without going back to a path string?
I see that I can tell the Finder something like
if exists folder "Target Folder" of folder containerAlias then ...
Does that keep us in the realm above path strings or is the Finder just doing the same thing as the previous example?
Thanks!
_______________________________________________
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