String manip: from AppleScript to shell
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.