• 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: Creating a folder on the desktop (recap)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a folder on the desktop (recap)


  • Subject: Re: Creating a folder on the desktop (recap)
  • From: patrick machielse <email@hidden>
  • Date: Fri, 09 Sep 2005 11:45:16 +0200

Op 9-sep-2005, om 6:31 heeft Mark J. Reed het volgende geschreven:

On 9/8/05, patrick machielse <email@hidden> wrote:

I further learned / found out that support for true UNIX file paths
seems constricted to "System Events"

Could you expand on what you mean by that?

and that POSIX path / file is
not a complete peer, in that it can't resolve "~/.." etc.

[]

If System Events supports
the tilde-notation on OS X, I find that surprising.  Useful, but
surprising.

-- this works tell application "System Events" to get folder "~/.."

--    this doesn't, no surprise
tell application "Finder" to get folder "~/.."

--    this is converted to 'file ":~:..:"' at compile time
POSIX file "~/.."

--    this is results in 'file ":~:..:"' at run time
set thePath to "~/.."
POSIX file thePath

I would have liked it if POSIX file resolved the path and expanded the tilde at run time.

--    this is an error "can't get file '~/..'" (not: ':~:..:' !)
tell application "Finder"
    set thePath to "~/.."
    POSIX file thePath
end tell

It's just slightly confusing to me.

patrick
_______________________________________________
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: Creating a folder on the desktop (recap)
      • From: Dave Lyons <email@hidden>
References: 
 >Re: Creating a folder on the desktop (recap) (From: patrick machielse <email@hidden>)
 >Re: Creating a folder on the desktop (recap) (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Creating a folder on the desktop
  • Next by Date: A quick question about moving files
  • Previous by thread: Re: Creating a folder on the desktop (recap)
  • Next by thread: Re: Creating a folder on the desktop (recap)
  • Index(es):
    • Date
    • Thread