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 10:20:35 +0100
Shane Stanley wrote:
> > Deprecation is just a flag to say "don't use this anymore from now
>> on". I don't want have it removed immediately and pull the rug from
>> under anyone's feet. Just yet :-) Deprecation isn't the end of the
>> world (just the end of the line). About half of Java is deprecated.
>
>The problem is that deprecating colon-delimited paths in favor of POSIX
>paths would not be so much changing the language as calling for a change to
>every scriptable application.
Wrong. There are a few applications that ignore the SIG and optionally allow HFS path strings to be passed (e.g. Finder, InDesign), and there may be one or two brain-addled ones that actually require it, but the vast majority use file objects which individual languages can represent textually in any form they like (e.g. Python creates and displays alias and file objects using POSIX paths). Deprecating use of HFS paths would be a complete non-issue for most applications, and a minor one for the rest as it doesn't prevent their use (merely highlights how naughty they are).
The only annoying bit is the Apple Event Manager's built-in file-object-to-text coercions, which return HFS paths and can't be changed without causing some breakage to existing code, so that behaviour would probably have to remain inconsistent in any brave new POSIX world.
That said, I don't expect Apple to change AppleScript 1.x's use of HFS paths in creating and displaying file objects; the best thing to do with a legacy technology is make as comfortable as possible in the current environment, which they've already done by adding POSIX file and POSIX path, not start rocking the boat in a dozen new directions. I would expect any eventual successor (e.g. the perpetually vaporous 'AppleScript 2.0') to use POSIX throughout, but obviously don't go holding your breath for that.
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