• 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: Yvan KOENIG <email@hidden>
  • Date: Mon, 13 Nov 2017 16:58:34 +0100


> Le 13 nov. 2017 à 12:46, Shane Stanley <email@hidden> a écrit :
>
> …
> But under 10.13 I see this:
>
>       choose file
>               --> alias "Macintosh HD:Users:shane:Desktop:changed77"
> end tell
> tell application "Finder"
>       exists alias "Macintosh HD:Users:shane:Desktop:changed77"
>               --> true
>       set name of alias "Macintosh HD:Users:shane:Desktop:changed77" to
> "changed88"
>               --> "changed88"
>       exists alias "/Users/shane/Desktop/changed77"
>               --> false
> end tell

As you know I am curious so I ran:

tell application "Finder"
        exists alias "Macintosh HD:Users:shane:Desktop:changed77"
                --> true
        -- set name of alias "Macintosh HD:Users:shane:Desktop:changed77" to
"changed88"
                --> "changed88"
        exists alias "/Users/shane/Desktop/changed77"
                --> false
        exists alias "Macintosh HD:Users:shane:Desktop:changed77"
                --> true

end tell

I'm not surprised because, as far as I know, the Finder doesn't like POSIX path.

I made new test with :
--But under 10.13.1 I see:
set p2d to (path to desktop) as text
set theFile to (p2d & "évolution Apple 77.numbers")

set p2dP to POSIX path of p2d
tell application "Finder"
        exists alias theFile
        --> true
        set newName to "évolution Apple 88.numbers"
        set name of alias theFile to newName
        --> "évolution Apple 88.numbers"

        tell me to set posixFile to POSIX file (p2dP & newName)
        exists posixFile
        --> true

        exists alias (p2d & newName)
        --> true
end tell

which seems to be the logical behavior.


I must add that here, I boot from an external SSD because the internal HD is a
mechanical disk.

Yvan KOENIG running High Sierra 10.13.1 in French (VALLAURIS, France) lundi 13
novembre 2017 16:58:28




 _______________________________________________
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: 
 >Bug or Spec ? (From: Takaaki Naganoya <email@hidden>)
 >Re: Bug or Spec ? (From: Shane Stanley <email@hidden>)

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