Re: Getting a File Reference
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