Re: 10.x References?
Re: 10.x References?
- Subject: Re: 10.x References?
- From: Malcolm Fitzgerald <email@hidden>
- Date: Tue, 17 Sep 2002 10:39:49 +1000
Both choose file and choose folder are in the standard additions
package, not the finder so the simplest form of the command is
choose folder {}
set _folder to result
-- or --
set _folder to (choose folder{})
However, the magic word in the advice you were given is "home" which
is a property of the finder, so you have to address the finder to
make use of it.
tell application "finder"
choose folder {} of home
set _folder to result
end tell
-- or --
tell application "Finder" to choose folder {} of home
set _folder to result
-- or --
tell application "Finder" to set _folder to (choose folder {} of home)
You'll notice the keyword "application" is present. AppleScript can
be picky about this sort of thing.
I just lose interest when I find that Applescript is
still so full of holes compared to Hypertalk, which does so very much
without having to compensate. I guess I'm too darned visual or
something.
....
and now I'm trying again.
I wish I could actually do useful stuff with Applescript that means
something powerful to me, but it has never happened yet. I'm nobody's
fool, either - I've been a full-time professional tech since 1981.
We're all somebody's fool ;-)
You can't strip the labels from your HyperCard/HyperTalk project
folders and write "AppleScript" onto them with a black marker.
HyperCard was Apple's flagship "Wheel Construction Kit" for everyone
(gods and fools alike). If you want to be a wheel builder HyperCard
is the tool for you. AppleScript is more like a tools and parts
catalogue. You'll use it to call the suppliers. That is, you already
have someone building the wheels (filemaker), the suspension
(photoshop) and the chassis (inDesign). AppleScript lets you bring
them altogether. If you want to sit down and design wheels then a
fast prototyping tool like HyperCard is great. If you want to crush
cars in your Monster Truck this weekend you should use AppleScript to
get the tools and the parts delivered and bolt them together yourself.
--
--
Malcolm Fitzgerald email@hidden
Database Manager
http://www.asauthors.org
The Australian Society of Authors ph: 02 93180877 fax: 02 93180530
_______________________________________________
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.