• 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
Spaces in shell script paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Spaces in shell script paths


  • Subject: Spaces in shell script paths
  • From: Phillip Burk <email@hidden>
  • Date: Thu, 28 Mar 2002 13:57:12 -0500

OK, I apologize if this has been discussed here, but this is driving me
batty.

I'm attempting to script the launching of Java app that has to be run from
the command line. I get sick of typing it every day/more than every day.

Here's the syntax:

tell application "Terminal"
activate
do script with command "cd /Applications/HOBLink JWT"

<MORE STUFF HERE>

end tell

This script will compile and run but returns an error in Terminal because
the space is not preceded by a '\'. If I try to insert a '\' in the do
script with command line where it's needed, the script won't compile.

Now how do I denote spaces in a 'do script' line so that Terminal doesn't
barf?

Phil Burk
_____________________________________________________________
Intermediate Systems Support Technician
Hungry Minds, Inc.
317.572.3049

[Now jamming: "It's Not The Night" by The Cars]
_______________________________________________
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.

  • Follow-Ups:
    • Re: Spaces in shell script paths
      • From: Adrian <email@hidden>
  • Prev by Date: Simple Printing Script
  • Next by Date: re: AS does not find Filemaker database
  • Previous by thread: Re: Simple Printing Script
  • Next by thread: Re: Spaces in shell script paths
  • Index(es):
    • Date
    • Thread