• 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 Character
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change Character


  • Subject: Re: Change Character
  • From: tim <email@hidden>
  • Date: Sun, 5 Jun 2005 20:08:47 +1000

you need to add "my" to the call for RemoveColons.

i.e.,

set FinalSTR to my RemoveColons(str)

Kim Hunter" wrote:
This works great (in a new script of its own):

set str to "Zoom - How to get:set in Photoshop  CS?  MESSAGES"
set FinalSTR to RemoveColons(str)


on RemoveColons(Substring)
set NewString to do shell script "echo '" & Substring & "' | tr ':''-'"
return NewString
end RemoveColons


But when I run it within my script it gives an error cannot continue
RemoveColons

_______________________________________________ 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
  • Follow-Ups:
    • Re: Change Character
      • From: Kim Hunter <email@hidden>
References: 
 >Re: Change Character (From: Kim Hunter <email@hidden>)

  • Prev by Date: Re: Change Character
  • Next by Date: Re: Change Character
  • Previous by thread: Re: Change Character
  • Next by thread: Re: Change Character
  • Index(es):
    • Date
    • Thread