• 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
POSIX path don't work - why? any tipp?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

POSIX path don't work - why? any tipp?


  • Subject: POSIX path don't work - why? any tipp?
  • From: Armin Egginger <email@hidden>
  • Date: Sun, 27 Feb 2005 11:23:22 +0100

Hi Scripters,

I using the command "POSIX path" of AS in my project, but this doesn't work correct by names with spaces in it.

example script

set xRef to choose folder
log xRef
set xUnixPath to (POSIX path of xRef)
log xUnixPath
if (xUnixPath as string) starts with "/\"" then
beep
else
beep 3
end if


result:
tell current application
choose folder
alias "MacHD:Applications:FileMaker Pro 6:"
(*alias
MacHD:Applications:FileMaker Pro 6:*)
(*
/Applications/FileMaker Pro 6/*)
beep 3
end tell

must be with quotation marks like this:
/"Applications/FileMaker Pro 6/"

is there a easy way to do it?

many thanks for your tipps.

Armin
 _______________________________________________
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: POSIX path don't work - why? any tipp?
      • From: John Stewart <email@hidden>
  • Prev by Date: Re: What is this?
  • Next by Date: Re: POSIX path don't work - why? any tipp?
  • Previous by thread: Re: Re: Converting 'file:/' URL to MacOS path name...
  • Next by thread: Re: POSIX path don't work - why? any tipp?
  • Index(es):
    • Date
    • Thread