This is the home page of the Samples Website. 8/16/97.

UserLand Software's Sample Scripts

appleScript
circumference
An example of AppleScript syntax.
readme
script1
Hello World in AppleScript.
script2
Accessing the object database from AppleScript.
script3
A simple repeat with loop in AppleScript.
script4
Illustrates calling Frontier verbs from AppleScript.
script5
Illustrates an enhancement to db.get.
basicStuff
addAppToMenu
Adds an application to Frontier's Apps menu.
addCopyright
Adds a copyright notice at the top of each text file in a folder.
addToAppleMenu
Adds a file to the Apple menu.
aldusBusinessCards
Use PageMaker to create a custom business card from scratch.
aliasGatherer
a general-purpose script for gathering aliases, see samples.basicStuff.appAliases for an example.
appAliases
this script creates an folder full of aliases to all applications in the folder you specify.
bitTwiddler
Illustrates the new bit verbs in Frontier 3.0.
buildFolderOutline
Produces an outline that mirrors the structure of a folder.
buildOutlineSite
Turn an outline into a website.
buildTableOutline
Builds an outline of any table in the object database.
changeFileNames
This script changes the extension of all .htm files to .html.
changeIDs
Changes all TeachText files in a folder to Microsoft Word files.
commaDelimitedInfo
Shows you how to work with comma-delimited information.
compileMe
To compile, choose Remove Source Code from the Script menu.
copyAllResources
Copies all resources in the source file to dest file.
countFolderLines
Counts the lines of text in a folder full of text files.
createNewSuite
Creates a new suite of scripts in Frontier's database.
customDialog
Shows you how to implement a custom dialog in Frontier.
debugaliases
visit all the files in a folder you choose.
delete1stCharInFile
Someone on the Mac Scripting list needed to do this.
dialogTest
Illustrates most of the built-in dialogs in Frontier.
driveBarChart
Illustrates the use of UserLand's BarChart demo app.
exportFromOutline
Exports a list of objects contained in an outline.
fileDialogs
Illustrates the use of file.getFileDialog and lists.
fileloopTest
Illustrates the use of Frontier's built-in "fileloop" construct.
fileMakerLoop
Shows how to pull information out of a FileMaker database.
fileRenamer
Showing how to rename files in a loop.
findAETEs
Creates a folder of aliases of apps that have an 'aete' resource.
findBogusDates
Finds all files with "bogus" dates.
finderCalendar
Creates a calendar folder structure.
gatherAppAliases
Creates an folder full of aliases to all applications in a folder.
getNthVolume
returns the path to the nth volume.
hideFrontier
this script hides the Frontier app.
iconCopier
Gathers all the color icons on all disks in a file.
iconSorter
Re-arranges the icons in the sub-folders of the Frontier folder.
idleWatcher
run this script, wait, you'll see the number go up.
installAppleScript
Installs or de-installs items installed by AppleScript.
installFrontier
Creates an alias of the Frontier application in a special folder.
keyboardWatcher
Shows how Frontier's keyboard verbs work.
largestFiles
Find the 10 largest files on the system disk.
launchRemoteFile
Shows how to launch an app or document on a remote Macintosh.
makeRoom
Deletes half the files in Frontier's backup folder.
megabyteString
Shows you how to display sizes in megabytes.
microEditor
A quick editor script you can invoke from the Apple menu.
netBrowseTest
Illustrates the use of sys.browseNetwork.
nightlyBackup
this is how I do my big backups.
oldestObject
Finds the oldest object in Frontier.root.
optionalParams
Shows how optional parameters work in Frontier 3.0.
otherRoots
Illustrates the use of the new db.xxx verbs in Frontier 4.1.
quarkDocServer
Flows DocServer text thru Quark XPress 3.2.
randomBarChart
this script uses BarChart to measure the randomness of Frontier's random number generator.
readLiner
Reads a text file one line at a time.
readPictureFile
Reads a picture file into Frontier.root.
readTextFile
Reads a text file created by samples.basicStuff.writeTextFile.
reallyEmptyTrash
Helps out the Finder when it can't empty the trash.
removingSource
Exports a table of compiled scripts, source code removed.
requestToFrontTest
Illustrates the Frontier.requestToFront verb.
resourceMap
Creates an outline listing of all resources in a file.
resourceStealer
Gathers all the resource of the indicated type into a file that you can edit with ResEdit.
restartFinder
Tells the Finder to quit, then relaunches it.
revertFrontWindow
Discards changes to the frontmost window.
rimshot
Illustrates the use of Frontier's speaker.sound verb.
runClipboard
Evaluates the contents of the clipboard as a script.
scrollMsg
scrolls a message thru Frontier's main window.
searchDisks
Searches all text files in a folder for a string of characters.
smoothStuffer
Shows how to create a StuffIt archive of a folder.
statesToClip
Puts the names of all 50 states on the clipboard.
stringLoop
Shows how to index thru all the characters in a string.
stringPotpourri
A miscellaneous grab bag of string stuff.
stuffAndUpload
create and upload a StuffIt archive of all the files selected in the Finder.
stuffChangedFiles
Creates a StuffIt archive with all files changed in the last day.
tableVisit
visits every cell in the object database.
textSort
Sorts a text file using the quick sort in Frontier's outliner.
ttxtCreator
Changes the type of a text file.
viewSubsByName
Loops over a folder, changing all sub-folders to view-by-name.
volumeHasSystem
Shows how you can determine if a volume has a System Folder.
windowFormatter
Resizes and places the Frontier window following standard rules.
withTest
Shows how to use Frontier's "with" statement.
writeTextFile
Creates a text file containing the names of the 50 states.
lists
readme
sample1
This script contains examples used in the Frontier 3.0 main read me.
sample2
generates a list of files in your Extensions folder.
sample3
generates a nested list of files in your System Folder.
sample4
yet another folder outliner script!.
sample5
a cute little script, shows how for..in works.
XPress[trademark]
This sample script illustrates the use of lists with Quark XPress 3.2.
NewIn96
add2lines
this script adds two lines at the beginning of a text file.
batchRenamer
From a request on the Mac Scripting list...
compareFolders
compares two folders selected in the Finder.
keepJazSpin
a dual function agent.
urlMaker
Generate 300 URLs for a Pounder run against three web servers.
NewIn97
buildTestFolders
Creates a randomly complex set of folders and files. .
countMenuCommands
Counts the commands in the Finder's Scripts menu.
importImages
Loads all image files in a folder into a table.
listRunningApps
Returns a list of apps running on your machine.
numericIPaddress
Return true if it's something like 206.204.24.2.
randomPasswords
Generates a list of 100 random 8-character passwords.
uploadSamples
whoIs
A simple interface onto the TCP verb, whoIs.
performance
AppleScript1
AppleScript2
AppleScript3
Run Me!
run the benchmark scripts.
UserTalk1
UserTalk2
UserTalk3
recording
script1
This script was generated using Frontier 3.0's script recorder.
script2
This script is based on the first sample script.
script3
This script was generated using Frontier's script recorder.
records
sample1
This script contains the examples used in the Frontier 3.0 main read me.
sample2
create a mini-database in Frontier's object database.
XPress
This sample script illustrates the use of records with Quark XPress 3.2.


This page was last built on Sat, Aug 16, 1997 at 6:30:54 PM. You can download the current set of sample scripts from our FTP site. Dave