• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get only the name of the file, instead of the whole path!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: deivy petrescu <email@hidden>
  • Date: Thu, 17 Jan 2008 22:25:02 -0500


On Jan 17, 2008, at 20:37, Stockly, Ed wrote:

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.)

Ed, are you sure?
TID is global for a session. That is if you set it, you have to restart SE to get back the default TID.



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


Deivy
_______________________________________________
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
  • Follow-Ups:
    • Re: Get only the name of the file, instead of the whole path!
      • From: Luther Fuller <email@hidden>
    • Re: Get only the name of the file, instead of the whole path!
      • From: KOENIG Yvan <email@hidden>
References: 
 >Re: Get only the name of the file, instead of the whole path! (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: Parsing Strings
  • Next by Date: Re: Should I not have avoided Leopard?
  • Previous by thread: Re: Get only the name of the file, instead of the whole path!
  • Next by thread: Re: Get only the name of the file, instead of the whole path!
  • Index(es):
    • Date
    • Thread