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

Re: overrule space


  • Subject: Re: overrule space
  • From: Bastiaan Boertien <email@hidden>
  • Date: Wed, 12 Jan 2005 17:14:07 +0100

Hi,

If you open the Terminal and drag your folder into the Terminal window you will see the "/volumepath/TO\ SEND/". If you do with applescript "get POSIX path of alias volumename:TO SEND:" you will see in your results "/volumepath/TO SEND". you will have to put "\" before the space. "POSIX path of" will not do this for you in Applescript.


greetings bastiaan


Op 12-jan-05 om 16:53 heeft Adam K. Wuellner het volgende geschreven:


On Jan 12, 2005, at 4:57 AM, Jan-Bultereys wrote:

hi,
.....
set filetosendpath_BEL to "cd /volumepath/TO SEND"
....
do shell script "" & filetosendpath_BEL & "; curl -T " & stuff_name_BEL & " " & ftpBELTEST & "" & stuff_name_BEL & ""


how can I overrule the space between "TO SEND"
BACKSLAH does not compile....
I need to overrule the space because as you can see the variable is addressed in
the "do shell script"

Here's a way:

set filetosendpath_BEL to quoted form of POSIX path of alias "volumename:TO SEND:"
--> "'/Volumes/volumename/TO SEND/'"


The quoted form is what you want. I chose to ask for the POSIX-style path of an alias, so that you could move the TO SEND folder and not have to update your script. You can decide if that's helpful or not.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to 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
  • Follow-Ups:
    • Re: overrule space
      • From: "Adam K. Wuellner" <email@hidden>
References: 
 >overrule space (From: "Jan-Bultereys" <email@hidden>)
 >Re: overrule space (From: "Adam K. Wuellner" <email@hidden>)

  • Prev by Date: Re: Pages program = unscriptable
  • Next by Date: Re: Pages program = unscriptable
  • Previous by thread: Re: overrule space
  • Next by thread: Re: overrule space
  • Index(es):
    • Date
    • Thread