Re: Bug or Spec ?
Re: Bug or Spec ?
- Subject: Re: Bug or Spec ?
- From: Takaaki Naganoya <email@hidden>
- Date: Tue, 14 Nov 2017 20:10:04 +0900
Some scripters told me that macOS 10.13’s Script Editor sometimes returns posix
path with choose file command.
I thought their environment is corrupted or damaged.
My advice with them was “Wait for macOS 10.13.1 update”.
They reported that macOS 10.13.1 recovered their trouble (not all, partly).
But some users reports strange act (“POSIX path” style alias) with macOS
10.13.1.
--
Takaaki Naganoya
email@hidden
http://piyocast.com/as/
> 2017/11/14 2:22、Deivy Petrescu <email@hidden>のメール:
>> On Nov 13, 2017, at 02:05 , Takaaki Naganoya <email@hidden> wrote:
>>
>> set aa to choose file
>>
>> tell application "Finder"
>> set a1 to (exists of aa) as string
>> set a2 to (class of aa) as string
>> set a3 to (name of aa) as string
>>
>> display dialog a1 & "-" & a2 & "-" & a3
>>
>> set name of aa to "changed4"
>>
>> delay 60
>>
>> set b1 to (exists of aa) as string
>> display dialog b1
>>
>> end tell
>
> Well,
> I see something different here.
> I ran the script above and checked the log, this is what I found:
>
> <script log>
> tell application "Script Editor"
> choose file
> --> alias "/Users/deivy/Desktop/ScreenShot.png"
> end tell
> tell application "Finder"
> exists alias “/Users/deivy/Desktop/ScreenShot.png” ———> the Finder
> responds to posix path!
> —> true
> ———> the Finder responds to posix path!
> get name of alias "Praiano:Users:deivy:Desktop:ScreenShot.png"
> --> "ScreenShot.png"
> display dialog "true-alias-ScreenShot.png"
> --> error number -1708
> «event ascrgdut»
> --> error number -1708
> display dialog "true-alias-ScreenShot.png"
> --> {button returned:"OK"}
> set name of alias "Praiano:Users:deivy:Desktop:ScreenShot.png" to
> "changed4"
> --> "changed4"
> exists alias “/Users/deivy/Desktop/ScreenShot.png” ———> what I see is
> that aa still referes to the old alias, the code above changed the name of
> the alias but did not referred it to aa
> --> false
> display dialog "false"
> --> {button returned:"OK"}
> end tell
> Result:
> {button returned:"OK"}
>
> </script log>
>
>
>
> Deivy Petrescu
> 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