Re: 10.x References?
Re: 10.x References?
- Subject: Re: 10.x References?
- From: Tony Lindsey <email@hidden>
- Date: Mon, 16 Sep 2002 00:31:49 -0700
Thanks to all for responding, and I think I need to lurk a bit longer
to find out WHY the things you kindly told me didn't work for me - I
suspect it's bone ignorance on my part. I'm running 10.2, and the
following examples don't do the trick at all for me:
>
tell "Finder"
>
set pickmepickme to folder "whatever" of home
>
end tell
This got me the "Expected end of line but found ". error, no matter
how I phrased it.
tell "Finder"
set pickmepickme to path to current user folder
end tell
Got me the "Finder doesn't understand the "Path To" message. I suspect
that there is some sort of scripting addition that I should have
installed somewhere. In Developer Tools, maybe? Does it bother
anybody else that Applescript is so weak (compared to Hypertalk) unless
you add stuff to a folder somewhere, which makes it so darned
non-portable? As long as I'm whining piteously (:->), it's surely a
pain that the OS 10.2 Finder is SCRIPTABLE, but not RECORDABLE, as in
OS 9.
>
Use the expression
>
>
from user domain
>
>
(as opposed to 'from local domain' for main Library and contents, 'from
>
System domain' for anything in the System folder, 'from network
>
domain' for
>
things on remote servers).
>
>
So
>
>
path to preferences from user domain
>
>
This is documented in the 'path to' scripting addition, in detail in
>
Bill
>
Cheeseman's AppleScript Sourcebook website. (Bill doesn't pull things).
>
Hmmm - Thanks, but searching Bill's site (I found it using Google)
brought me no hits when searching for "Path To". Dang. I suppose I'm
waaay too much of a newbie, but your detailed help listed above didn't
make much sense to my beginner's understanding, though I do thank you
for your time and courtesy.
I guess I've got to go back to the Applescript books for the third or
fourth time. 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. I don't want to make a career of this, I just want data to
snap around like it did in Hypercard - Bam-Bam-Bam. I've been using
Hypertalk since the very first days of Hypercard, and I can code like a
god, but Applescript just frustrates me after so many years of trying
to get work done with its crippled, intentionally-limited command-set.
I learned Applescript when it first came out, got irritated because I
couldn't imagine what I could do with it that mattered to me, tried
again a few years later, got bored and irritated, then loaded
Applescript Studio 1.0 because it seemed to promise so much, was
appalled at how hard it was to load and use, 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.
In my desperation, I've tried all of the Hypercard replacements that
claim to be better, and they're either too weak, don't translate my
existing stacks, or they want $900! Classic won't be around forever,
so I'm anxious to shift to something new, but preferably better.
>
Then there are a lot more special folders available to 'path to' as
>
4-character strings. They're listed in a file on Chris Nebel's iDisk.
I found Chris Nebel's PICTURE using Google, but no iDisk. Could
somebody supply the actual link? Thanks!
>
>
Have you looked here?
>
>
<http://www.apple.com/applescript/release_notes/>
>
Thanks, yes - That was the first place I looked. It doesn't tell me
much of use, honestly - It's a mish-mash, not something I can use as an
actual reference.
_______________________________________________
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.