• 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
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


  • Subject: (no subject)
  • From: Michael Terry <email@hidden>
  • Date: Tue, 13 Apr 2004 16:37:35 -0700

Hi,

I knew you could do this, which is pretty cool:

tell application "Finder"
duplicate every file of (choose folder)
end tell

... but I didn't know you could also do this, which is really cool:

-- [1]
tell application "Finder"
duplicate {every file of (choose folder), every file of (choose folder)}
end tell

Since another way of writing the previous is:

-- [2]
tell application "Finder"
duplicate it of {every file of (choose folder), every file of (choose folder)}
end tell

... how come neither this:

-- [3]
tell application "Finder"
set comment of {every file of (choose folder), every file of (choose folder)} to "hello"
end tell

... nor this:

-- [4]
tell application "Finder"
set its comment of {every file of (choose folder), every file of (choose folder)} to "hello"
end tell

... works? Aren't [1] and [2] analogous to [3] and [4]?

Mike
_______________________________________________
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.


  • Follow-Ups:
    • Re: (no subject)
      • From: Michael Grant <email@hidden>
  • Prev by Date: Re: Starting a process when Mail starts - possible?
  • Next by Date: Re: Change of file creation date
  • Previous by thread: Re: Fwd: Brain Function
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread