Re: RegExps in AS
Re: RegExps in AS
- Subject: Re: RegExps in AS
- From: Doug McNutt <email@hidden>
- Date: Mon, 21 Feb 2005 19:34:41 -0700
At 23:25 +0100 2/21/05, Ihar 'Philips' Filipau wrote:
>On 20 Feb 2005, at 22:02, kai wrote:
>>on part of str at pos between sep
>> set text item delimiters to sep
>> set str to str's text item pos
>> set text item delimiters to {""}
>> str
>>end part
>>
>>set filePath to "Macintosh HD:Users:UserName:Documents:Some File.rtf"
>>
>>set fullName to part of filePath at -1 between ":"
>>set shortName to part of fullName at 1 between "."
>
>Wow. That's cool.
Yep. I shall use it as an example of English-like programming for my casual users at the local user group.
These commands to tcsh:
set fff = my:Mac:File:With:Colons:And.extension
echo $fff:r
echo $fff:e
return these lines:
my:Mac:File:With:Colons:And
extension
But I haven't the foggiest idea how to get AppleScript to run tcsh without creating a temporary file.
--
--> If you are presented a number as a percentage, and you do not clearly understand the numerator and the denominator involved, you are surely being lied to. <--
_______________________________________________
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