• 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 a File Reference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting a File Reference


  • Subject: Re: Getting a File Reference
  • From: Shane Stanley via AppleScript-Users <email@hidden>
  • Date: Wed, 8 Jan 2020 09:28:55 +1100

On 8 Jan 2020, at 7:55 am, Jim Underwood via AppleScript-Users
<email@hidden> wrote:
>
>       • set fileRef to "<HFS or POSIX path>" as «class furl»

With the caveat that I'm not sure it has always worked with POSIX paths.

For a POSIX path, you can use POSIX file:

set fileRef to "/Users/YourUserName/Documents/TEST/New File.txt" as POSIX file


or:

set fileRef to POSIX file "/Users/YourUserName/Documents/TEST/New File.txt"

The result is the same thing:

class of fileRef
--> «class furl»

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


 _______________________________________________
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: 
 >Getting a File Reference (From: Jim Underwood via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: Getting a File Reference
  • Next by Date: Fwd: Christophe Stone ?
  • Previous by thread: Re: Getting a File Reference
  • Next by thread: Fwd: Christophe Stone ?
  • Index(es):
    • Date
    • Thread