• 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: Short course
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Short course


  • Subject: Re: Short course
  • From: Paul Skinner <email@hidden>
  • Date: Tue, 4 Mar 2003 10:33:17 -0500

On Tuesday, March 4, 2003, at 09:58 AM, Brennan wrote:

David Hood <email@hidden> wrote:

snip

One of the great jaw-dropping examples for beginners to 'get it' quickly is to
have a huge folder of html files with assorted other items (images, swfs,
dcrs, movs) - a website, in other words - and then do this:

tell app "Finder"
select (items of window 1 whose name contains ".htm")
end tell

Trouble is, I don't think 'window 1 of Finder' is meaningful in OSX. (How do
we express that now, actually?)

The same code works in Jaguar.

tell application "Finder"
select (items of window 1 whose name contains ".htm")
end tell
-->document file "index.html" of folder "Sites" of folder "paul" of folder "Users" of startup disk

Paul Skinner
10.2.4 / 1.9
_______________________________________________
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: Short course
      • From: Andrew <email@hidden>
  • Prev by Date: Scripting FaxSTF
  • Next by Date: Re: myLoop: getting subject of messages in Mail.app
  • Previous by thread: Re: Short course
  • Next by thread: Re: Short course
  • Index(es):
    • Date
    • Thread