MACSCRPT Archives

April 2008

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jon Pugh <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 25 Apr 2008 07:06:08 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (53 lines)
At 11:38 PM -0700 4/24/08, Chris Page wrote:
>Could you elaborate on exactly which part(s) of Jon's Commands you make use of?

The commands I used most were:

	keys pressed
	set cursor to
	play sound

No one has replaced these yet.

Many people loved these screen commands:

	screen list
	set screens to

Some fellow wrote a unix tool called cscreen, but stopped supporting it.

My file commands avoided the Finder and had no UI:

	deleteFile
	renameFile
	moveFile
	copyFile

These are in the system these days but were written before the Finder was scriptable:

	sound volume
	set sound volume to
	machine environment
	the clipboard
	set the clipboard to

Other miscellaneous weird commands:

	the ticks -- for timers
	walk folders -- a cool file iterator I used a lot
	AE user interaction level -- a way to avoid dialogs sometimes
	choose color -- because I could
	snag object -- a developer's tool to store an AS object specifier
	fileIsBusy -- Leonard made me add this one ;)

Plus the coercions that people both loved and hated:

	string to file specification -- 'TEXT' to 'fss '
	styled text to file specification -- 'STXT' to 'fss '
	international text to file specification -- 'itxt' to 'fss '
	script to anything -- 'scpt' to '****'

All of it was useful at one time or another.  My thinking was to reimplement the first three and Walk Folders if I ever got around to it.  ;)

Jon

ATOM RSS1 RSS2