Le 22/05/2014 à 19:19, Thomas Fischer < email@hidden> a écrit : Hello Yvan, Am 22.05.2014 um 17:53 schrieb koenig.yvan: I didn't wrote that the script was unable to open a file defined by a path-string.It's a wrong behaviour but at this time it is always accepted.
I just wrote that exists my_img would always return true because the string my_img exists.
I wanted to convince you that this is not the case. At least on my system (10.6.8) exists my_img returns false if the file my_img doesn't exist, the same with exists file my_img .
And it is willing and able to create a reference to this file, if it exists after possibly erasing or adding(!) some zeroes in front of the name, provided the first character of the name is a digit.
Best THomas
Many things changed since 10.6.8
In this system, the Finder is more or less able to accept path-strings, aliases, file references (I don't remember if it accept FURLs).
Officially, this feature is — at last – dropped in Mavericks. As you see in my messages, it's not fully dropped but as long as an asker doesn't explicitly name its operating system, I respond according to the current one. At this time it's Mavericks and it behaves as I wrote.
Yvan KOENIG (VALLAURIS, France) jeudi 22 mai 2014 19:33:59
|