• 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
Weird...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: long path error in Finder -- known bug?
  • Next by Date: Re: Crunch numbers
  • Previous by thread: Re: long path error in Finder -- known bug?
  • Next by thread: Re: Weird...
  • Index(es):
    • Date
    • Thread