Re: Change tif to jpg
Re: Change tif to jpg
- Subject: Re: Change tif to jpg
- From: Kai Edwards <email@hidden>
- Date: Sun, 29 Sep 2002 02:39:54 +0000
on Sat, 28 Sep 2002 15:08:38 +0200, Krister Nyman <email@hidden>
wrote:
>
I am trying to change the end of record name in Cumulus 4.0 from tif to
>
jpg
I'm a great fan of AppleScript's text item delimiters - and they'd certainly
do the job here. However, for greater brevity and speed [1], you might
consider this alternative:
---------------------------------------------------------
>
get name as string
>
set cum_name to result
if cum_nam ends with "tif" then set cum_nam to [NO BREAK]
cum_nam's text 1 thru -4 & "jpg"
---------------------------------------------------------
HTH.
Kai
--
[1] approximately x 5 (OMM - and in this type of situation).
--
email@hidden
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.