'info for' + special folders bug in OS 9.1?
'info for' + special folders bug in OS 9.1?
- Subject: 'info for' + special folders bug in OS 9.1?
- From: cris <email@hidden>
- Date: Tue, 16 Jan 2001 01:59:04 +0100
Hello list,
Can anyone confirm this?:
Watch for linebreaks:
-----------------------
tell application "Finder"
--set ASVersion to short version of (info for (file 1 of extensions
folder whose name is "AppleScript"))
--short version of (info for (file 1 of extensions folder whose name is
"AppleScript"))
--(info for (file 1 of extensions folder whose name is "AppleScript"))
(*
All the above lines do not work until:
a) this line is once executed: (file 1 of extensions folder whose name is
"AppleScript")
b) the folder is open.
Once it works, you can break it again by recompiling the script.
It is related to 'info for' in combination with the special folders of the
finder. If i change one of this it works:
Works always with a hard path:
(info for (file 1 of folder "cooc:testf:" whose name is "AppleScript"))
Works always with 'name of':
(name of (file 1 of extensions folder whose name is "AppleScript"))
*)
end tell
-----------------------
Greetings
cris