Re: How do I delete the 1st three characters from a variable
Re: How do I delete the 1st three characters from a variable
- Subject: Re: How do I delete the 1st three characters from a variable
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 3 Jan 2006 15:41:56 -0500
On 1/3/06, Patrik B. <email@hidden> wrote:
> Hi,
>
> I am trying to replace images that are in one language with those of
> another. I.e. DAN-image.eps to ENG-image.eps.
This works:
set myimage to "DAN-image.eps"
set mynewimagename to "ENG" & characters 4 through end of myimage
But depending on what you're trying to do, it may be easier to break
it out - something like this:
set image_name to "image.eps"
-- and then later --
set lang to "DAN" -- or ENG, FIN, ISL, NOR, SWE, etc.
-- and then still later --
set image_filename to (lang & "-" & image_name)
--
Mark J. Reed <email@hidden>
_______________________________________________
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