Re: Creating a folder on the desktop
Re: Creating a folder on the desktop
- Subject: Re: Creating a folder on the desktop
- From: has <email@hidden>
- Date: Wed, 7 Sep 2005 21:04:14 +0100
Shane Stanley wrote:
>There are other, subtle issues. For example, most apps have a name property
>for documents. What are you going to return for a file that appears in the
>Finder as "Stuff 7/9"?
"Stuff 7/9". (BTW, many apps discourage or prevent usage of either slashes or colons to avoid such problems in the first place.)
>If you keep returning "Stuff 7/9", you're going to
>make building paths a more painful business.
Only because AppleScript doesn't have a standard library worth a damn. Any language worth its salt would provide a whole set of POSIX path manipulation commands making trivial stuff like this a complete non-issue. Besides which, working with HFS path strings is hardly a great idea given their inability to distinguish between multiple drives of the same name. Dunno about you, but I'd take the minor inconvenience of calling an 'escape' command over writing fundamentally unreliable code any day.
If this is the most serious problem with using POSIX paths then there's really nothing to worry about, though as I say it's all probably academic as I don't see AppleScript 1.x ever making such a change anyway.
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden