• 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: getting colon delimited path from POSIX path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting colon delimited path from POSIX path


  • Subject: Re: getting colon delimited path from POSIX path
  • From: John Delacour <email@hidden>
  • Date: Thu, 31 Oct 2002 10:13:58 +0000
  • Mac-eudora-version: 5.3a8

At 1:10 am -0800 31/10/02, Paul Berkowitz wrote:

> POSIX file "/some/path"

will give you an AppleScript file. In fact, if you use an actual hardcoded
path, rather than a variable, it compiles with colons as you compile it.

But - if there are spaces in the path - you can't use 'quoted form' of the
POSIX path with single quotes, you need to \" escape-quote the path.


I don't see quite what you're getting at. Why _would_ anyone go to the unnecessary trouble of using 'quoted path' in this case?

I'd say it's best always to put the POSIX path into a variable in order to avoid the thing resolving on compilation, just as it is with date things.


tell app "TextEdit" to set pathPos to path of front document
set pathMac to POSIX file pathPos as alias
JJJJJJ
set pathPos to "/Users/jd/Documents/Hello World.rev"
set pathMac to POSIX file pathPos as alias
JJJJJJ
set dString to "31 Oct 03"
set d to date dString

-- JD
_______________________________________________
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: getting colon delimited path from POSIX path
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: getting colon delimited path from POSIX path (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: getting colon delimited path from POSIX path
  • Next by Date: AS version -- Which best?
  • Previous by thread: Re: getting colon delimited path from POSIX path
  • Next by thread: Re: getting colon delimited path from POSIX path
  • Index(es):
    • Date
    • Thread