• 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: Bug or Spec ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug or Spec ?


  • Subject: Re: Bug or Spec ?
  • From: Deivy Petrescu <email@hidden>
  • Date: Mon, 13 Nov 2017 12:22:15 -0500

> 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

  • Follow-Ups:
    • Re: Bug or Spec ?
      • From: Takaaki Naganoya <email@hidden>
    • Re: Bug or Spec ?
      • From: Shane Stanley <email@hidden>
References: 
 >Bug or Spec ? (From: Takaaki Naganoya <email@hidden>)

  • Prev by Date: Re: Bug or Spec ?
  • Next by Date: Re: Dereference number
  • Previous by thread: Re: Bug or Spec ?
  • Next by thread: Re: Bug or Spec ?
  • Index(es):
    • Date
    • Thread