Re: Get only the name of the file, instead of the whole path!
Re: Get only the name of the file, instead of the whole path!
- Subject: Re: Get only the name of the file, instead of the whole path!
- From: "Stockly, Ed" <email@hidden>
- Date: Thu, 17 Jan 2008 17:37:40 -0800
- Thread-topic: Get only the name of the file, instead of the whole path!
>> There is no bad here, only good. : )
>
> Thank you, George Orwell. :)
Snort!
>>> But I think it's perfectly valid to point out where the design of
AppleScript is sub-optimal... although I suppose I could just sit back and let
has do it, since lately he acts like that's what he's paid for. ;-)
OK, but I don't think the design of Text Item Delimiters is sub-optimal.
TID's are one of the few properties that belong to appleScript. There are
more now, but for some time TIDs were it.
Because TIDs belong to appleScript they act the same way in any context and
they have no overhead associated with calls to OSAX or apps. That makes them
work much faster. But, because they belong to appleScript, they behave in a
"global" fashion ( although that behavior has changed. It used to be that
there was only one AppleScript TID at any time, so two scripts running on
the same mac always had the same value for TIDs. That was sub-optimal and
that was fixed.)
If the option is to run fast and be global or run slower and be localized, I
think Apple made the right choice.
If they were to muck with them, I'd much rather see something like allowing
multiple TIDs.
Set text item delimiters to {" - ", "-"}
For example.
ES
_______________________________________________
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