• 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
String manip: from AppleScript to shell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

String manip: from AppleScript to shell


  • Subject: String manip: from AppleScript to shell
  • From: Philippe GRUCHET <email@hidden>
  • Date: Mon, 20 Jan 2003 08:12:35 +0100

Greetings!

Before going farther with shell commands, I'd like to know if a such AppleScript routine can be translated in Perl for a 'do shell script' command:

-- string manipulation: swaps two words (here, space separated)

set {aString, AppleScript's text item delimiters} to {"Apple Script", space}
set {x, y, AppleScript's text item delimiters} to {aString's text item 1, aString's text item 2, ""}
set z to y & space & x --> "Script Apple"

-- eos

If the answer is yes, could you share an example?

Thank you very much!

Kind regards,
Philippe Gruchet/SVM Mac
VNU Publications France
http://svmmac.vnunet.fr
_______________________________________________
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: Routines for review: Hex <-> String
  • Next by Date: Mail.app Script
  • Previous by thread: Re: Storing passwords in scripts
  • Next by thread: Re: String manip: from AppleScript to shell
  • Index(es):
    • Date
    • Thread