• 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: How do I delete the 1st three characters from a variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How do I delete the 1st three characters from a variable (From: "Patrik B." <email@hidden>)

  • Prev by Date: Re: How do I delete the 1st three characters from a variable
  • Next by Date: Re: How do I delete the 1st three characters from a variable
  • Previous by thread: Re: How do I delete the 1st three characters from a variable
  • Next by thread: Re: How do I delete the 1st three characters from a variable
  • Index(es):
    • Date
    • Thread