Re: Difficulty Opening a Text File in BBEdit
Re: Difficulty Opening a Text File in BBEdit
- Subject: Re: Difficulty Opening a Text File in BBEdit
- From: has <email@hidden>
- Date: Wed, 28 Aug 2002 12:19:32 +0100
Arthur J. Knapp wrote:
>
One has to maintain a constant vigilance to ensure that only the
>
Finder works with Finder objects, because nothing else does.
Best advice ever.
I think scripters can easily forget that the Finder isn't a part of
AppleScript (or even part of the core OS [1]). The Finder is just another
application, comparable to BBEdit, QXP, etc; simply somewhere to go when
you want to do Finder-ish things. And just as BBEdit has its own rules and
tools for manipulating text, so does the Finder have its own rules and
tools for manipulating stuff in the filesystem.
Such rules (and tools) only work within that particular application which
supports them, however. For example: just as QXP knows nothing about alias
files, desktop objects, etc, the Finder knows nothing about text and
picture boxes, paragraph styles, and so on. To expect any different is to
misunderstand completely how AppleScript works.
Or, as Tim Bates mused in a little off-list chat we once had: think of
aliases [and file specifications] as a sort of 'lingua franca'. Unlike the
Finder they're part of the AppleScript language itself, and anything that
knows anything will know what they are and how to use them. Don't leave
home - or the Finder - without them!
Cheers,
has
[1] Even though the MacOS [for ease of learning and convenient use]
presents it as if it were - an extraordinarily successful 'white' lie if
ever there was one. And probably the root cause for much of this
confusion...:p
_______________________________________________
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.