• 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
Re: file list with Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file list with Finder


  • Subject: Re: file list with Finder
  • From: "Marc K. Myers" <email@hidden>
  • Date: Sat, 12 Oct 2002 18:13:19 -0400

Date: Sat, 12 Oct 2002 11:49:10 +0100
To: Applescript-Users <email@hidden>
From: John Delacour <email@hidden>
Subject: Re: file list with Finder

At 12:28 am -0700 12/10/02, Paul Berkowitz wrote:

1) It's very common in many apps that certain properties have to first be
evaluated before you can get a property of the property.

YES. And there are two fail-safe methods of ensuring this:-

set varFolder to choose folder
tell app "Finder"
files in (get entire contents of varFolder)
end
JJJJJJ
set varFolder to choose folder
tell app "Finder"
entire contents of varFolder -- optional get
files in result
end

Both of these return empty sets because the list resulting from "entire contents" isn't a Finder container object and therefore can't contain Finder objects.

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[10/12/02 6:12:41 PM]
_______________________________________________
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: XML beginner question (about special characters display)
  • Next by Date: Re: [ANN] Report on AppleScript 1.9 released
  • Previous by thread: Re: file list with Finder
  • Next by thread: Ignoring white space bug
  • Index(es):
    • Date
    • Thread