[BUG] FileDirectory>>exists

Anthony Adachi adachipro at yahoo.com
Thu May 22 08:03:18 UTC 2003


  
Lukas Renggli wrote:

>  Anthony Adachi wrote:
>  > Is that something like what you had in mind at
first?
>  
>  I'm quite sure, that this is more or less the thing
I like to have in
>  Squeak, although I could not find the documentation
on the Apple page.
  
Sorry, I don't have an exact link to the description
of AppleScript's Finder Object Model. I'm sure it's
buried somewhere on the AppleScript site.
 
What I use is Script Debugger 3.0's Object model view
in it's Application Dictionary to view such things. It
presents a graphical view of an app's dictionary, that
is if the app supports the object model (like the
Finder). A trial version is available for download.
 

http://www.latenightsw.com/sd3.0/walkThrough/appDictionary.html#object
  
Not sure if this would be of interest but to find out
more about AppleScript's language implementation
there's also Apple's Developer section:
http://developer.apple.com/techpubs/macosx/Carbon/interapplicationcomm/AppleScript/applescript.html
http://www.apple.com/applescript/developers/
http://www.apple.com/applescript/resources/

I agree with your other points but I'm not quite sure
about this one regarding the name of this desired
class.

>  In my opinion a new class with the described
responsibilities should be
>  called Filename, because I also want to use it to
create new files and
>  to deal with non-existent and deleted ones. Of
course we would need
>  messages like FileDirectory>>exists and
Filename>>exists (as seen in my
>  tests) to check the actual presence of those
entities.

Although, I'm not sure what a good name might be
Filename sounds, to my ears at least, too much like
simply a class without any further responsibilities
other than naming. It seems to me that an object which
might also be responsible for such things like moving
or copying speaks out for an name which sounds more
like an entity rather than a label or id. 

But that may be due to my prior experience in
AppleScript where a file's name is just a property of
a file object. e.g.-

tell application "Finder"
	name of file x
end tell

Just a thought,

Anthony

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com



More information about the Squeak-dev mailing list