Re: Original item in Finder (oops)
Re: Original item in Finder (oops)
- Subject: Re: Original item in Finder (oops)
- From: Emmanuel <email@hidden>
- Date: Tue, 30 Aug 2005 14:39:22 +0200
At 2:26 PM +0200 8/30/05, Emmanuel wrote:
At 6:39 AM -0400 8/30/05, Gary (Lists) wrote:
That said, you should go ahead and get familiar with 'text item delimiters'
because they are very useful for any number of scripting tasks, and you
_will_ need to use them at some point.
If unsolicited advice is an allowed genre, you might even, Jay,
consider getting familiar with regular expressions. In my
experience, this will save you much time. For instance extracting
the container's path is:
change "^.*:([^:]+):?$" into "\\1" in theOriginalPath
Didn't test that, sorry. Should really read:
----------- tested
change "^.*:([^:]+):?$" into "\\1" in theOriginalPath with regexp
-----------
unless you expect "non-trivial" Unicode in which case it would rather be:
----------- tested
uchange "^.*:([^:]+):?$" into "\\1" in theOriginalPath with regexp
-----------
And, that's not to extract the container's path, it's to extract the
name (just the opposite, thus.)
Extracting the container would be:
----------- tested
uchange "^(.*:)[^:]+:?$" into "\\1" in theOriginalPath with regexp
-----------
Emmanuel
_______________________________________________
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