Re: What gives here finder
Re: What gives here finder
- Subject: Re: What gives here finder
- From: Barry Wainwright via AppleScript-Users <email@hidden>
- Date: Tue, 5 Nov 2019 22:17:03 +0000
It’s interpreting it as “ get (file type of x) as alias
‘X’ is already an alias, the file type of X is “osas”, so you’re trying to
coerce “osas” to an alias and it can’t find any such file in the current
directory.
Best Regards,
Barry Wainwright
> On 5 Nov 2019, at 22:07, WalterStuartBushell via AppleScript-Users
> <email@hidden> wrote:
>
>
> Is there something I don’t understand here. I did not try to reference file
> “osas”
> but finder throws an error anyways.
>
> 10.13.6 my machine won’t support 14 script editor 2.10
>
> Applescripts is in Documents, but does appear in Finder favorites sidebar.
>
>
> Running this
> tell application “Finder"
>
> set x to POSIX file "/AppleScripts/Change file name.scpt" as alias
> get file type of x as alias
> end tell
> ———————————————————
> get file type of alias "After Ewe:AppleScripts:Change file name.scpt"
> --> "osas"
> Result:
> error "File osas wasn’t found." number -43 from "osas"
>
>
> —
> “That which doesn’t make us stronger kills us.”
>
> _______________________________________________
> 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
_______________________________________________
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