Re: changing part of a string
Re: changing part of a string
- Subject: Re: changing part of a string
- From: Ed Stockly <email@hidden>
- Date: Mon, 28 Jan 2008 08:31:49 -0800
Huh. For some reason i had it in my head that AS strings were immutable.
I think Mark is right. This does not work on my mac:
set fullPath to "G5:bigfolder:2 color:myfolder:image1.eps" set AppleScript's text item delimiters to {":"} set text item 3 of fullPath to "CMYK images"
This does:
set oldDelims to AppleScript's text item delimiters set AppleScript's text item delimiters to {":"} set fullPath to every text item of "G5:bigfolder:2 color:myfolder:image1.eps" set item 3 of fullPath to "CMYK Images" set fullPath to fullPath as string set AppleScript's text item delimiters to oldDelims
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