• 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: What gives here finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What gives here finder


  • Subject: Re: What gives here finder
  • From: WalterStuartBushell via AppleScript-Users <email@hidden>
  • Date: Tue, 5 Nov 2019 20:06:52 -0500

Thanks, Yes, about half an hour after I posted that I saw what it must be.

When in doubt add parentheses.

> On Nov 5, 2019, at 5:17 PM, Barry Wainwright <email@hidden> wrote:
>
> 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

—
“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

References: 
 >What gives here finder (From: WalterStuartBushell via AppleScript-Users <email@hidden>)
 >Re: What gives here finder (From: Barry Wainwright via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: What gives here finder
  • Next by Date: [ANN] Simple PDF Reader a countermeasure for macOS 10.15 Bug
  • Previous by thread: Re: What gives here finder
  • Next by thread: [ANN] Simple PDF Reader a countermeasure for macOS 10.15 Bug
  • Index(es):
    • Date
    • Thread