• 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: Given a POSIX Path...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Given a POSIX Path...


  • Subject: Re: Given a POSIX Path...
  • From: Emmanuel LEVY <email@hidden>
  • Date: Sun, 5 Dec 2010 22:41:26 +0100

On Dec 5, 2010, at 11:49 AM, Marconi wrote:

Given the quoted form of a posix path to a file, how do I get that item's Finder info structure so I can rename that file?


Finder is fond of aliases, so I would do - assuming fq is the quoted form of the posix path:

set f to do shell script "echo " & fq -- this do "unquote" the string
set fa to posix file f as alias
tell app "Finder" to set name of fa to whatever -- this not tested.

Emmanuel


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Given a POSIX Path... (From: Marconi <email@hidden>)
 >Re: Given a POSIX Path... (From: Luther Fuller <email@hidden>)
 >Re: Given a POSIX Path... (From: Doug McNutt <email@hidden>)
 >Re: Given a POSIX Path... (From: Marconi <email@hidden>)

  • Prev by Date: Re: Given a POSIX Path...
  • Next by Date: Re: Given a POSIX Path...
  • Previous by thread: Re: Given a POSIX Path...
  • Next by thread: Re: Given a POSIX Path...
  • Index(es):
    • Date
    • Thread