• 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: "Stockly, Ed" <email@hidden>
  • Date: Thu, 17 Jan 2008 16:46:52 -0800
  • Thread-topic: Get only the name of the file, instead of the whole path!

 if I
> set tid and then call a handler, and after that handler returns the tid are
set differently?  Somebody's getting hit.  Side effects: bad.

Yes, that's why I provided the sample handler below...

>> --------
>> On DoMyStuff ()
>>     set oldDelims to AppleScript's text item delimiters
>>     set AppleScript's text item delimiters to {","}
>>         --do my stuff here
>>     set AppleScript's text item delimiters to oldDelims
>>     Return
>> End DoMyStuff
>>
>> -----------

> Of course, the original "bad" here is making tid a global in the first place.

There is no bad here, only good. : )

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

  • Follow-Ups:
    • Re: Get only the name of the file, instead of the whole path!
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Get only the name of the file, instead of the whole path! (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Obfuscations and little white lies
  • Next by Date: Re: Get only the name of the file, instead of the whole path!
  • 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