Re: Finder "duplicate" requirements
Re: Finder "duplicate" requirements
- Subject: Re: Finder "duplicate" requirements
- From: Christopher Stone <email@hidden>
- Date: Mon, 29 Jun 2015 13:24:22 -0500
On Jun 29, 2015, at 11:00, Deivy Petrescu <email@hidden> wrote:However, declaring a variable before as in
set pp to POSIX file posixPath exists pp
will always work. The “get” inside the first command will always error.
______________________________________________________________________
Well, that depends on how you do it. :)
----------------------------------------------------------------- tell application "Finder"
# Works set PF1 to POSIX file "/Users/chris/Desktop/Finder.snapz.009.jpg" exists PF1
# Errors-out set PF2 to "/Users/chris/Desktop/Finder.snapz.009.jpg" set PF2 to POSIX file PP
end tell -----------------------------------------------------------------
Because of this kind of mess I never use Posix Paths in the Finder.
There are occasions where I'll use Posix-Files if I've created them outside of the Finder, because those are actually of «class furl» — and the Finder likes them fine.
-- Best Regards, Chris
|
_______________________________________________
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