Weird...
Weird...
- Subject: Weird...
- From: mjn <email@hidden>
- Date: Wed, 13 Mar 2002 13:54:16 -0600
Can anyone explain this to me?
This works:
set aliasFileList to (startup items folder)'s files
This works:
set aliasFileList to (desktop)'s files
Neither of these seem to work:
set aliasFileList to {(startup items folder)'s files, (desktop)'s files}
or
set aliasFileList to (desktop)'s files
set aliasFileList's end to (startup items folder)'s files
The script assigns them to the reference but when it tries to accessing the
value, say with a repeat loop, all of the items added from the second
location (either in desktop in the first example or startup items in the
second one), fail. This is apparently because they are not being
referenced properly (doc 1&2 are on the Desktop and doc 0 is in startup
items):
--> Can't get kind of {file "Document 1" of application "Finder", file
"Document 2" of application "Finder"}
Whereas the others succeed like this:
get kind of file "Document 0" of folder "Startup Items" of folder "System
Folder" of startup disk
--> "PDF Document"
So what is the difference in these assignments?
Thanks much...mjn
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.