Re: Resolving an alias
Re: Resolving an alias
- Subject: Re: Resolving an alias
- From: Roger Howard <email@hidden>
- Date: Fri, 30 Oct 2009 16:19:18 -0700
Forgive me if I'm misunderstanding the point, but coercing an alias to a string and checking it's last character should be a pretty quick and painless way to determine if the target of an alias is a directory (ends with ":") or not, no?
isDirectory(choose folder) (* returns true *)
isDirectory(choose file) (* returns false *)
on isDirectory(thisAlias) return (last character of (thisAlias as string)) is ":" end isDirectory |
_______________________________________________
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