• 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: Change tif to jpg
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Is SMILE the way to go for this?
  • Next by Date: How to do an HTTP POST?
  • Previous by thread: re: Change tif to jpg
  • Next by thread: Re: real comparison problems [Re: ASTest redux]
  • Index(es):
    • Date
    • Thread