Modifier and Type | Field | Description |
---|---|---|
static Set<Class<?>> |
APPLICATION_CLASSES |
All classes belonging to this application.
|
static TypeClass |
CLASS |
Modifier and Type | Method | Description |
---|---|---|
void |
addingFolderItemsTo(Alias folderReceivingTheNewItems,
Alias[] aListOfTheItemsTheFolderReceived) |
Called after new items have been added to a folder.
|
String |
asciiCharacter(int theCodePointOfTheSpecifiedCharacter) |
Convert a number to a character.
|
int |
asciiNumber(String theCharacter) |
Convert a character to a number.
|
void |
beep(int numberOfTimesToBeep) |
Beep 1 or more times.
|
Reference |
chooseApplication(String theDialogWindowTitle,
String thePromptToBeDisplayedInTheDialogBox,
boolean allowMultipleItemsToBeSelectedDefaultIsFalse,
TypeClass theDesiredTypeOfResultMayBeApplicationTheDefaultOrAlias) |
Choose an application on this machine or the network.
|
Color |
chooseColor(Color theDefaultColor) |
Choose a color.
|
Alias |
chooseFile(String thePromptToBeDisplayedInTheDialogBox,
String[] aListOfFileTypesOrTypeIdentifiersOnlyFilesOfTheSpecifiedTypesWillBeSelectable,
Alias theDefaultFileLocation,
boolean showInvisibleFilesAndFoldersDefaultIsFalse,
boolean allowMultipleItemsToBeSelectedDefaultIsFalse,
boolean showTheContentsOfPackagesPackagesWillBeTreatedAsFoldersDefaultIsFalse) |
Choose a file on a disk or server.
|
JaplScriptFile |
chooseFileName(String thePromptToBeDisplayedInTheDialogBox,
String theDefaultNameForTheNewFile,
Alias theDefaultFileLocation) |
Get a new file reference from the user, without creating the file.
|
Alias |
chooseFolder(String thePromptToBeDisplayedInTheDialogBox,
Alias theDefaultFolderLocation,
boolean showInvisibleFilesAndFoldersDefaultIsFalse,
boolean allowMultipleItemsToBeSelectedDefaultIsFalse,
boolean showTheContentsOfPackagesPackagesWillBeTreatedAsFoldersDefaultIsFalse) |
Choose a folder on a disk or server.
|
double[] |
chooseFromList(double[] aListOfItemsToDisplay,
String theDialogWindowTitle,
String thePromptToBeDisplayedInTheDialogBox,
String[] aListOfItemsToInitiallySelectAnEmptyListIfNoSelection,
String theNameOfTheOkButton,
String theNameOfTheCancelButton,
boolean allowMultipleItemsToBeSelected,
boolean canTheUserMakeNoSelectionAndThenChooseOk) |
Choose one or more items from a list.
|
double[] |
chooseFromList(String[] aListOfItemsToDisplay,
String theDialogWindowTitle,
String thePromptToBeDisplayedInTheDialogBox,
String[] aListOfItemsToInitiallySelectAnEmptyListIfNoSelection,
String theNameOfTheOkButton,
String theNameOfTheCancelButton,
boolean allowMultipleItemsToBeSelected,
boolean canTheUserMakeNoSelectionAndThenChooseOk) |
Choose one or more items from a list.
|
Reference |
chooseRemoteApplication(String theDialogWindowTitle,
String thePromptToBeDisplayedAboveTheListOfApplications) |
Choose a running application on a remote machine or on this machine.
|
Url |
chooseUrl(Essv[] whichNetworkServicesToShow,
boolean allowUserToTypeInAUrl) |
Choose a service on the Internet.
|
List[] |
clipboardInfo(TypeClass restrictsToInformationAboutOnlyThisDataType) |
Return information about the clipboard.
|
void |
closeAccess(Reference theFileReferenceNumberAliasOrFileReferenceOfTheFileToClose) |
Close a file that was opened for access.
|
void |
closingFolderWindowFor(Alias theFolderThatWasClosed) |
Called after a folder window has been closed.
|
Date |
currentDate() |
Return the current date and time.
|
void |
delay(double theNumberOfSecondsToDelayDefaultIs0) |
Pause for a fixed amount of time.
|
AlertReply |
displayAlert(String theAlertTextWillBeDisplayedInEmphasizedSystemFont,
String theExplanatoryMessageWillBeDisplayedInSmallSystemFont,
Ealt theTypeOfAlertDefaultIsInformational,
String[] aListOfUpToThreeButtonNames,
String theNameOrNumberOfTheDefaultButton,
String theNameOrNumberOfTheCancelButton,
int numberOfSecondsToWaitBeforeAutomaticallyDismissingTheAlert) |
Display an alert.
|
DialogReply |
displayDialog(String theTextToDisplayInTheDialogBox,
String theDefaultEditableText,
boolean shouldEditableTextBeDisplayedAsBulletsDefaultIsFalse,
String[] aListOfUpToThreeButtonNames,
String theNameOrNumberOfTheDefaultButton,
String theNameOrNumberOfTheCancelButton,
String theDialogWindowTitle,
String theResourceNameOrIdOfTheIconToDisplay,
Stic OrOneOfTheseSystemIcons,
JaplScriptFile OrAnAliasOrFileReferenceToAIcnsFile,
int numberOfSecondsToWaitBeforeAutomaticallyDismissingTheDialog) |
Display a dialog box, optionally requesting user input.
|
void |
displayNotification(String theBodyTextOfTheNotification,
String theTitleOfTheNotificationDefaultIsTheNameOfTheCallingApplication,
String theSubtitleOfTheNotification,
String theNameOfTheSoundToPlay) |
Display a notification.
|
String |
doShellScript(String theShellScriptToExecute,
TypeClass theDesiredTypeOfResultDefaultIsTextUtf8,
boolean executeTheCommandAsTheAdministrator,
String useThisAdministratorAccountToAvoidAPasswordDialogIfThisParameterIsSpecifiedThePasswordParameterMustAlsoBeSpecified,
String useThisAdministratorPasswordToAvoidAPasswordDialog,
String thePromptToBeDisplayedInThePasswordDialogWhenTheNameAndPasswordAreNotSpecifiedOrAreIncorrect,
boolean changeAllLineEndingsToMacStyleAndTrimATrailingOneDefaultTrue) |
Execute a shell script using the ‘sh’ shell.
|
int |
getEof(Reference aFileReferenceNumberAliasOrFileReferenceOfAFile) |
Return the length, in bytes, of a file.
|
static ScriptingAddition |
getInstance() |
Returns an instance for application StandardAdditions.
|
Map<String,Object> |
getProperties() |
Returns all properties for an instance of this class.
|
VolumeSettings |
getVolumeSettings() |
Get the sound output and input volume settings.
|
WebPage |
handleCgiRequest(String thePathOfTheUrl,
String theDataForTheGetMethodOrDataAfterTheInAPostMethod,
String thePostArguments,
String theMimeContentTypeOfPostArguments,
String eitherGetOrPost,
String theIpAddressOfTheEntityMakingTheRequest,
String theUserNameAssociatedWithTheRequest,
String thePasswordSentWithTheRequest,
String additionalInformationAboutTheUserUsuallyTheEmailAddress,
String theNameOfTheServerApplicationSendingThisRequest,
String theIpPortNumberOfTheServer,
String thePathToTheScriptExecutingThisCgiInUrlForm,
String theUrlOfThePageTheClientUsedToLinkToTheCgi,
String theNameOfTheClientSoftware,
String thePathToTheFileOrCgi,
String eitherPreprocessorPostprocessorCgiOrAcgi,
String theInternetAddressOfTheClient,
String theFullRequestAsSentToTheServer,
int theIdOfTheConnectionFromTheServerToTheClient,
String theUrlOfTheRootFolderOfTheVirtualHost) |
Sent to a script to process a Common Gateway Interface request.
|
FileInformation |
infoFor(JaplScriptFile anAliasOrFileReferenceToTheFileOrFolder,
boolean returnTheSizeOfTheFileOrFolderDefaultIsTrue) |
Return information for a file or folder.
|
String[] |
listDisks() |
Return a list of the currently mounted volumes.
|
String[] |
listFolder(JaplScriptFile anAliasOrFileReferenceToTheFolder,
boolean listInvisibleFilesDefaultIsTrue) |
Return the contents of a specified folder.
|
Reference |
loadScript(JaplScriptFile anAliasOrFileReferenceToTheFileContainingTheScriptObject) |
Return a script object loaded from a specified file.
|
String |
localizedString(String theKey,
String theNameOfTheStringsFileExcludingTheStringsSuffixDefaultIsLocalizable,
JaplScriptFile anAliasOrFileReferenceToTheBundleContainingTheStringsFileDefaultIsTheCurrentApplicationScriptBundle) |
Return the localized string for the specified key.
|
JaplScriptFile |
mountVolume(String theNameOrUrlPathEGAfpServerVolumeOfTheVolumeToMount,
String theServerOnWhichTheVolumeResidesOmitIfUrlPathProvided,
String theAppletalkZoneInWhichTheServerResidesOmitIfUrlPathProvided,
String theUserNameWithWhichToLogInToTheServerOmitForGuestAccess,
String thePasswordForTheUserNameOmitForGuestAccess) |
Mount the specified server volume.
|
void |
movingFolderWindowFor(Alias theFolderWhoseWindowWasMovedOrResized,
Rectangle thePreviousCoordinatesOfFolderWindowYouCanGetTheNewCoordinatesFromTheFinder) |
Called after a folder window has been moved or resized.
|
int |
offset(String theSourceTextToFindThePositionOf,
String theTargetTextToSearchIn) |
Find one piece of text inside another.
|
int |
openForAccess(JaplScriptFile theFileOrAliasToOpenForAccessIfTheFileDoesNotExistANewFileIsCreated,
boolean whetherToAllowWritingToTheFile) |
Open a disk file for the read and write commands.
|
void |
openingFolder(Alias theFolderThatWasOpened) |
Called after a folder has been opened into a window.
|
void |
openLocation(String theUrlToOpen,
boolean shouldErrorConditionsBeReportedInADialog) |
Opens a URL with the appropriate program.
|
String |
pathTo(Reference theItemPathToReturnEGCurrentApplicationFrontmostApplicationApplicationAppnameMeIt,
TypeClass theTypeToReturnAliasOrStringDefaultIsAlias) |
Return the full path to the specified application or script.
|
Alias |
pathTo(Afdr theFolderToReturn,
Fldm whereToLookForTheIndicatedFolder,
TypeClass theTypeToReturnAliasOrStringDefaultIsAlias,
boolean createTheFolderIfItDoesnTExistDefaultIsTrue) |
Return the full path to the specified folder.
|
String |
pathTo(Appf theItemPathToReturnEGCurrentApplicationFrontmostApplicationApplicationAppnameMeIt,
TypeClass theTypeToReturnAliasOrStringDefaultIsAlias) |
Return the full path to the specified application or script.
|
Alias |
pathToResource(String theNameOfTheRequestedResource,
JaplScriptFile anAliasOrFileReferenceToTheBundleContainingTheResourceDefaultIsTheTargetApplicationOrCurrentScriptBundle,
String theNameOfASubdirectoryInTheBundleSResourcesDirectory) |
Return the full path to the specified resource.
|
double |
randomNumber(double theUpperLimitDefaultIs10IfThisParameterIsSpecifiedTheFromAndToParametersWillBeIgnored,
double theLowestNumberToReturnDefaultIs00,
double theHighestNumberToReturnDefaultIs10,
int aStartingPointForARepeatableSequenceOfRandomNumbersAValueOf0WillUseARandomSeed) |
Generate a random number.
|
Reference |
read(Reference theFileReferenceNumberAliasOrFileReferenceOfTheFileToRead,
int startingFromThisPositionIfOmittedStartAtLastPositionReadFrom,
int theNumberOfBytesToReadFromCurrentPositionIfOmittedReadUntilTheEndOfTheFile,
int OrStopAtThisPosition,
String OrReadUpToButNotIncludingThisCharacter,
String OrReadUpToAndIncludingThisCharacter,
String theValueThatSeparatesItemsToRead,
String[] OrAListOfValuesThatSeparateItemsToRead,
TypeClass theFormInWhichToReadAndReturnData) |
Read data from a file that has been opened for access.
|
void |
removingFolderItemsFrom(Alias theFolderLosingTheItems,
Alias[] aListOfTheItemsTheFolderLostForPermanentlyDeletedItemsOnlyTheNamesInStringsAreProvided) |
Called after items have been removed from a folder.
|
int |
round(double theNumberToRound,
Olie theRoundingDirectionIfOmittedRoundsToNearestToNearestRounds5CasesToTheNearestEvenIntegerInOrderToDecreaseCumulativeErrorsToAlwaysRound5AwayFromZeroUseAsTaughtInSchool) |
Round number to integer.
|
Reference |
runScript(Reference theScriptTextOrAnAliasOrFileReferenceToAScriptFileToRun,
Reference[] aListOfParameters,
String theScriptingComponentToUseDefaultIsTheCurrentScriptingComponent) |
Run a specified script or script file.
|
void |
say(String theTextToSpeakWhichCanIncludeIntonationCharacters,
String theTextToDisplayInTheFeedbackWindowIfDifferentIgnoredUnlessSpeechRecognitionIsOn,
String theVoiceToSpeakWithDefaultIsTheSystemVoice,
double theRateOfSpeechInWordsPerMinuteAverageHumanSpeechOccursAtARateOf180To220WordsPerMinuteDefaultDependsOnTheVoiceUsedIfUsingIsNotGivenTheSystemSpeakingRateIsTheDefault,
double theBasePitchFrequencyARealNumberFrom0To127ValuesCorrespondToMidiNoteValuesWhere60IsEqualToMiddleCTypicalPitchesRangeFromAround30To40ForALowPitchedMaleVoiceToPerhaps55To65ForAHighPitchedChildSVoice,
double thePitchModulationARealNumberFrom0To127AValueOf0CorrespondsToAMonotoneInWhichAllSpeechIsAtTheBaseSpeechPitchGivenAPitchValueOf46AModulationOf2MeansTheWidestRangeOfPitchesWouldBe44To48,
double theVolumeARealNumberFrom0To1DefaultIsTheSystemVolume,
boolean stopAnyCurrentSpeechBeforeStartingDefaultIsFalseWhenFalseSayWaitsForPreviousSpeechCommandsToCompleteBeforeBeginningToSpeak,
boolean waitForSpeechToCompleteBeforeReturningDefaultIsTrue,
Reference theAliasFileReferenceOrPathStringOfAnAiffFileExistingOrNotToContainTheSoundOutput) |
Speak the given text.
|
String[] |
scriptingComponents() |
Return a list of all scripting components (e.g.
|
void |
setEof(Reference aFileReferenceNumberAliasOrFileReferenceOfAFile,
int theNewLengthOfTheFileInBytesAnyDataBeyondThisPositionIsLost) |
Set the length, in bytes, of a file.
|
void |
setTheClipboardTo(Reference theDataToPlaceOnTheClipboard) |
Place data on an application’s clipboard.
|
void |
setVolume(double theSoundOutputVolumeARealNumberFrom0To7ThisParameterIsDeprecatedIfSpecifiedAllOtherParametersWillBeIgnored,
int theSoundOutputVolumeAnIntegerFrom0To100,
int theSoundInputVolumeAnIntegerFrom0To100,
int theAlertVolumeAnIntegerFrom0To100,
boolean shouldTheSoundOutputBeMuted) |
Set the sound output and/or input volume.
|
void |
storeScript(Reference theScriptObjectToStore,
JaplScriptFile anAliasOrFileReferenceToTheFileToStoreTheScriptObjectIn,
Savo controlDisplayOfTheSaveAsDialog) |
Store a script object into a file.
|
String |
summarize(Alias theTextOrAnAliasToATextFileToSummarize,
int theNumberOfSentencesDesiredInTheSummary) |
Summarize the specified text or text file.
|
String |
summarize(String theTextOrAnAliasToATextFileToSummarize,
int theNumberOfSentencesDesiredInTheSummary) |
Summarize the specified text or text file.
|
Reference |
systemAttribute(Reference theAttributeToTestEitherAGestaltValueOrAShellEnvironmentVariable,
int testSpecificBitsOfResponseIgnoredForEnvironmentVariables) |
Test attributes of this computer.
|
SystemInformation |
systemInfo() |
Get information about the system.
|
Reference |
theClipboard(TypeClass theTypeOfDataDesired) |
Return the contents of an application’s clipboard.
|
int |
timeToGmt() |
Return the difference between local time and GMT (Universal Time).
|
void |
write(Reference theDataToWriteToTheFile,
Reference theFileReferenceNumberAliasOrFileReferenceOfTheFileToWriteTo,
int startWritingAtThisPositionInTheFile,
int theNumberOfBytesToWriteIfNotSpecifiedWriteAllTheDataProvided,
TypeClass howToWriteTheDataAsTextDataListEtc) |
Write data to a file that was opened for access with write permission.
|
cast, getApplicationReference, getObjectReference, getTypeClass, isInstanceOf
static final TypeClass CLASS
@Kind("command") @Name("beep") void beep(int numberOfTimesToBeep)
numberOfTimesToBeep
- number of times to beep@Kind("command") @Name("choose application") Reference chooseApplication(@Parameter("with title") String theDialogWindowTitle, @Parameter("with prompt") String thePromptToBeDisplayedInTheDialogBox, @Parameter("multiple selections allowed") boolean allowMultipleItemsToBeSelectedDefaultIsFalse, @Parameter("as") TypeClass theDesiredTypeOfResultMayBeApplicationTheDefaultOrAlias)
theDialogWindowTitle
- the dialog window titlethePromptToBeDisplayedInTheDialogBox
- the prompt to be displayed in the dialog boxallowMultipleItemsToBeSelectedDefaultIsFalse
- Allow multiple items to be selected? (default is false)theDesiredTypeOfResultMayBeApplicationTheDefaultOrAlias
- the desired type of result. May be application (the default) or alias.@Kind("command") @Name("choose color") Color chooseColor(@Parameter("default color") Color theDefaultColor)
theDefaultColor
- the default color@Kind("command") @Name("choose file") Alias chooseFile(@Parameter("with prompt") String thePromptToBeDisplayedInTheDialogBox, @Parameter("of type") String[] aListOfFileTypesOrTypeIdentifiersOnlyFilesOfTheSpecifiedTypesWillBeSelectable, @Parameter("default location") Alias theDefaultFileLocation, @Parameter("invisibles") boolean showInvisibleFilesAndFoldersDefaultIsFalse, @Parameter("multiple selections allowed") boolean allowMultipleItemsToBeSelectedDefaultIsFalse, @Parameter("showing package contents") boolean showTheContentsOfPackagesPackagesWillBeTreatedAsFoldersDefaultIsFalse)
thePromptToBeDisplayedInTheDialogBox
- the prompt to be displayed in the dialog boxaListOfFileTypesOrTypeIdentifiersOnlyFilesOfTheSpecifiedTypesWillBeSelectable
- a list of file types or type identifiers. Only files of the specified types will be selectable.theDefaultFileLocation
- the default file locationshowInvisibleFilesAndFoldersDefaultIsFalse
- Show invisible files and folders? (default is false)allowMultipleItemsToBeSelectedDefaultIsFalse
- Allow multiple items to be selected? (default is false)showTheContentsOfPackagesPackagesWillBeTreatedAsFoldersDefaultIsFalse
- Show the contents of packages? (Packages will be treated as folders. Default is false.)@Kind("command") @Name("choose file name") JaplScriptFile chooseFileName(@Parameter("with prompt") String thePromptToBeDisplayedInTheDialogBox, @Parameter("default name") String theDefaultNameForTheNewFile, @Parameter("default location") Alias theDefaultFileLocation)
thePromptToBeDisplayedInTheDialogBox
- the prompt to be displayed in the dialog boxtheDefaultNameForTheNewFile
- the default name for the new filetheDefaultFileLocation
- the default file location@Kind("command") @Name("choose folder") Alias chooseFolder(@Parameter("with prompt") String thePromptToBeDisplayedInTheDialogBox, @Parameter("default location") Alias theDefaultFolderLocation, @Parameter("invisibles") boolean showInvisibleFilesAndFoldersDefaultIsFalse, @Parameter("multiple selections allowed") boolean allowMultipleItemsToBeSelectedDefaultIsFalse, @Parameter("showing package contents") boolean showTheContentsOfPackagesPackagesWillBeTreatedAsFoldersDefaultIsFalse)
thePromptToBeDisplayedInTheDialogBox
- the prompt to be displayed in the dialog boxtheDefaultFolderLocation
- the default folder locationshowInvisibleFilesAndFoldersDefaultIsFalse
- Show invisible files and folders? (default is false)allowMultipleItemsToBeSelectedDefaultIsFalse
- Allow multiple items to be selected? (default is false)showTheContentsOfPackagesPackagesWillBeTreatedAsFoldersDefaultIsFalse
- Show the contents of packages? (Packages will be treated as folders. Default is false.)@Kind("command") @Name("choose from list") double[] chooseFromList(String[] aListOfItemsToDisplay, @Parameter("with title") String theDialogWindowTitle, @Parameter("with prompt") String thePromptToBeDisplayedInTheDialogBox, @Parameter("default items") String[] aListOfItemsToInitiallySelectAnEmptyListIfNoSelection, @Parameter("OK button name") String theNameOfTheOkButton, @Parameter("cancel button name") String theNameOfTheCancelButton, @Parameter("multiple selections allowed") boolean allowMultipleItemsToBeSelected, @Parameter("empty selection allowed") boolean canTheUserMakeNoSelectionAndThenChooseOk)
aListOfItemsToDisplay
- a list of items to displaytheDialogWindowTitle
- the dialog window titlethePromptToBeDisplayedInTheDialogBox
- the prompt to be displayed in the dialog boxaListOfItemsToInitiallySelectAnEmptyListIfNoSelection
- a list of items to initially select (an empty list if no selection)theNameOfTheOkButton
- the name of the OK buttontheNameOfTheCancelButton
- the name of the Cancel buttonallowMultipleItemsToBeSelected
- Allow multiple items to be selected?canTheUserMakeNoSelectionAndThenChooseOk
- Can the user make no selection and then choose OK?@Kind("command") @Name("choose from list") double[] chooseFromList(double[] aListOfItemsToDisplay, @Parameter("with title") String theDialogWindowTitle, @Parameter("with prompt") String thePromptToBeDisplayedInTheDialogBox, @Parameter("default items") String[] aListOfItemsToInitiallySelectAnEmptyListIfNoSelection, @Parameter("OK button name") String theNameOfTheOkButton, @Parameter("cancel button name") String theNameOfTheCancelButton, @Parameter("multiple selections allowed") boolean allowMultipleItemsToBeSelected, @Parameter("empty selection allowed") boolean canTheUserMakeNoSelectionAndThenChooseOk)
aListOfItemsToDisplay
- a list of items to displaytheDialogWindowTitle
- the dialog window titlethePromptToBeDisplayedInTheDialogBox
- the prompt to be displayed in the dialog boxaListOfItemsToInitiallySelectAnEmptyListIfNoSelection
- a list of items to initially select (an empty list if no selection)theNameOfTheOkButton
- the name of the OK buttontheNameOfTheCancelButton
- the name of the Cancel buttonallowMultipleItemsToBeSelected
- Allow multiple items to be selected?canTheUserMakeNoSelectionAndThenChooseOk
- Can the user make no selection and then choose OK?@Kind("command") @Name("choose remote application") Reference chooseRemoteApplication(@Parameter("with title") String theDialogWindowTitle, @Parameter("with prompt") String thePromptToBeDisplayedAboveTheListOfApplications)
theDialogWindowTitle
- the dialog window titlethePromptToBeDisplayedAboveTheListOfApplications
- the prompt to be displayed above the list of applications@Kind("command") @Name("choose URL") Url chooseUrl(@Parameter("showing") Essv[] whichNetworkServicesToShow, @Parameter("editable URL") boolean allowUserToTypeInAUrl)
whichNetworkServicesToShow
- which network services to showallowUserToTypeInAUrl
- Allow user to type in a URL?@Kind("command") @Name("delay") void delay(double theNumberOfSecondsToDelayDefaultIs0)
theNumberOfSecondsToDelayDefaultIs0
- the number of seconds to delay (default is 0)@Kind("command") @Name("display alert") AlertReply displayAlert(String theAlertTextWillBeDisplayedInEmphasizedSystemFont, @Parameter("message") String theExplanatoryMessageWillBeDisplayedInSmallSystemFont, @Parameter("as") Ealt theTypeOfAlertDefaultIsInformational, @Parameter("buttons") String[] aListOfUpToThreeButtonNames, @Parameter("default button") String theNameOrNumberOfTheDefaultButton, @Parameter("cancel button") String theNameOrNumberOfTheCancelButton, @Parameter("giving up after") int numberOfSecondsToWaitBeforeAutomaticallyDismissingTheAlert)
theAlertTextWillBeDisplayedInEmphasizedSystemFont
- the alert text (will be displayed in emphasized system font)theExplanatoryMessageWillBeDisplayedInSmallSystemFont
- the explanatory message (will be displayed in small system font)theTypeOfAlertDefaultIsInformational
- the type of alert (default is informational)aListOfUpToThreeButtonNames
- a list of up to three button namestheNameOrNumberOfTheDefaultButton
- the name or number of the default buttontheNameOrNumberOfTheCancelButton
- the name or number of the cancel buttonnumberOfSecondsToWaitBeforeAutomaticallyDismissingTheAlert
- number of seconds to wait before automatically dismissing the alert@Kind("command") @Name("display dialog") DialogReply displayDialog(String theTextToDisplayInTheDialogBox, @Parameter("default answer") String theDefaultEditableText, @Parameter("hidden answer") boolean shouldEditableTextBeDisplayedAsBulletsDefaultIsFalse, @Parameter("buttons") String[] aListOfUpToThreeButtonNames, @Parameter("default button") String theNameOrNumberOfTheDefaultButton, @Parameter("cancel button") String theNameOrNumberOfTheCancelButton, @Parameter("with title") String theDialogWindowTitle, @Parameter("with icon") String theResourceNameOrIdOfTheIconToDisplay, @Parameter("with icon") Stic OrOneOfTheseSystemIcons, @Parameter("with icon") JaplScriptFile OrAnAliasOrFileReferenceToAIcnsFile, @Parameter("giving up after") int numberOfSecondsToWaitBeforeAutomaticallyDismissingTheDialog)
theTextToDisplayInTheDialogBox
- the text to display in the dialog boxtheDefaultEditableText
- the default editable textshouldEditableTextBeDisplayedAsBulletsDefaultIsFalse
- Should editable text be displayed as bullets? (default is false)aListOfUpToThreeButtonNames
- a list of up to three button namestheNameOrNumberOfTheDefaultButton
- the name or number of the default buttontheNameOrNumberOfTheCancelButton
- the name or number of the cancel buttontheDialogWindowTitle
- the dialog window titletheResourceNameOrIdOfTheIconToDisplay
- the resource name or ID of the icon to display…OrOneOfTheseSystemIcons
- …or one of these system icons…OrAnAliasOrFileReferenceToAIcnsFile
- …or an alias or file reference to a ‘.icns’ filenumberOfSecondsToWaitBeforeAutomaticallyDismissingTheDialog
- number of seconds to wait before automatically dismissing the dialog@Kind("command") @Name("display notification") void displayNotification(String theBodyTextOfTheNotification, @Parameter("with title") String theTitleOfTheNotificationDefaultIsTheNameOfTheCallingApplication, @Parameter("subtitle") String theSubtitleOfTheNotification, @Parameter("sound name") String theNameOfTheSoundToPlay)
theBodyTextOfTheNotification
- the body text of the notificationtheTitleOfTheNotificationDefaultIsTheNameOfTheCallingApplication
- the title of the notification (default is the name of the calling application).theSubtitleOfTheNotification
- the subtitle of the notificationtheNameOfTheSoundToPlay
- the name of the sound to play@Kind("command") @Name("say") void say(String theTextToSpeakWhichCanIncludeIntonationCharacters, @Parameter("displaying") String theTextToDisplayInTheFeedbackWindowIfDifferentIgnoredUnlessSpeechRecognitionIsOn, @Parameter("using") String theVoiceToSpeakWithDefaultIsTheSystemVoice, @Parameter("speaking rate") double theRateOfSpeechInWordsPerMinuteAverageHumanSpeechOccursAtARateOf180To220WordsPerMinuteDefaultDependsOnTheVoiceUsedIfUsingIsNotGivenTheSystemSpeakingRateIsTheDefault, @Parameter("pitch") double theBasePitchFrequencyARealNumberFrom0To127ValuesCorrespondToMidiNoteValuesWhere60IsEqualToMiddleCTypicalPitchesRangeFromAround30To40ForALowPitchedMaleVoiceToPerhaps55To65ForAHighPitchedChildSVoice, @Parameter("modulation") double thePitchModulationARealNumberFrom0To127AValueOf0CorrespondsToAMonotoneInWhichAllSpeechIsAtTheBaseSpeechPitchGivenAPitchValueOf46AModulationOf2MeansTheWidestRangeOfPitchesWouldBe44To48, @Parameter("volume") double theVolumeARealNumberFrom0To1DefaultIsTheSystemVolume, @Parameter("stopping current speech") boolean stopAnyCurrentSpeechBeforeStartingDefaultIsFalseWhenFalseSayWaitsForPreviousSpeechCommandsToCompleteBeforeBeginningToSpeak, @Parameter("waiting until completion") boolean waitForSpeechToCompleteBeforeReturningDefaultIsTrue, @Parameter("saving to") Reference theAliasFileReferenceOrPathStringOfAnAiffFileExistingOrNotToContainTheSoundOutput)
theTextToSpeakWhichCanIncludeIntonationCharacters
- the text to speak, which can include intonation characterstheTextToDisplayInTheFeedbackWindowIfDifferentIgnoredUnlessSpeechRecognitionIsOn
- the text to display in the feedback window (if different). Ignored unless Speech Recognition is on.theVoiceToSpeakWithDefaultIsTheSystemVoice
- the voice to speak with. (Default is the system voice.)theRateOfSpeechInWordsPerMinuteAverageHumanSpeechOccursAtARateOf180To220WordsPerMinuteDefaultDependsOnTheVoiceUsedIfUsingIsNotGivenTheSystemSpeakingRateIsTheDefault
- the rate of speech in words per minute. Average human speech occurs at a rate of 180 to 220 words per minute. (Default depends on the voice used. If “using” is not given, the system speaking rate is the default.)theBasePitchFrequencyARealNumberFrom0To127ValuesCorrespondToMidiNoteValuesWhere60IsEqualToMiddleCTypicalPitchesRangeFromAround30To40ForALowPitchedMaleVoiceToPerhaps55To65ForAHighPitchedChildSVoice
- the base pitch frequency, a real number from 0 to 127. Values correspond to MIDI note values, where 60 is equal to middle C. Typical pitches range from around 30 to 40 for a low-pitched male voice to perhaps 55 to 65 for a high-pitched child’s voice.thePitchModulationARealNumberFrom0To127AValueOf0CorrespondsToAMonotoneInWhichAllSpeechIsAtTheBaseSpeechPitchGivenAPitchValueOf46AModulationOf2MeansTheWidestRangeOfPitchesWouldBe44To48
- the pitch modulation, a real number from 0 to 127. A value of 0 corresponds to a monotone in which all speech is at the base speech pitch. Given a pitch value of 46, a modulation of 2 means the widest range of pitches would be 44 to 48.theVolumeARealNumberFrom0To1DefaultIsTheSystemVolume
- the volume, a real number from 0 to 1 (default is the system volume).stopAnyCurrentSpeechBeforeStartingDefaultIsFalseWhenFalseSayWaitsForPreviousSpeechCommandsToCompleteBeforeBeginningToSpeak
- stop any current speech before starting (default is false). When false, “say” waits for previous speech commands to complete before beginning to speak.waitForSpeechToCompleteBeforeReturningDefaultIsTrue
- wait for speech to complete before returning (default is true).theAliasFileReferenceOrPathStringOfAnAiffFileExistingOrNotToContainTheSoundOutput
- the alias, file reference or path string of an AIFF file (existing or not) to contain the sound output.@Kind("command") @Name("info for") FileInformation infoFor(JaplScriptFile anAliasOrFileReferenceToTheFileOrFolder, @Parameter("size") boolean returnTheSizeOfTheFileOrFolderDefaultIsTrue)
anAliasOrFileReferenceToTheFileOrFolder
- an alias or file reference to the file or folderreturnTheSizeOfTheFileOrFolderDefaultIsTrue
- Return the size of the file or folder? (default is true)@Kind("command") @Name("list disks") String[] listDisks()
@Kind("command") @Name("list folder") String[] listFolder(JaplScriptFile anAliasOrFileReferenceToTheFolder, @Parameter("invisibles") boolean listInvisibleFilesDefaultIsTrue)
anAliasOrFileReferenceToTheFolder
- an alias or file reference to the folderlistInvisibleFilesDefaultIsTrue
- List invisible files? (default is true)@Kind("command") @Name("mount volume") JaplScriptFile mountVolume(String theNameOrUrlPathEGAfpServerVolumeOfTheVolumeToMount, @Parameter("on server") String theServerOnWhichTheVolumeResidesOmitIfUrlPathProvided, @Parameter("in AppleTalk zone") String theAppletalkZoneInWhichTheServerResidesOmitIfUrlPathProvided, @Parameter("as user name") String theUserNameWithWhichToLogInToTheServerOmitForGuestAccess, @Parameter("with password") String thePasswordForTheUserNameOmitForGuestAccess)
theNameOrUrlPathEGAfpServerVolumeOfTheVolumeToMount
- the name or URL path (e.g. ‘afp://server/volume/’) of the volume to mounttheServerOnWhichTheVolumeResidesOmitIfUrlPathProvided
- the server on which the volume resides; omit if URL path providedtheAppletalkZoneInWhichTheServerResidesOmitIfUrlPathProvided
- the AppleTalk zone in which the server resides; omit if URL path providedtheUserNameWithWhichToLogInToTheServerOmitForGuestAccess
- the user name with which to log in to the server; omit for guest accessthePasswordForTheUserNameOmitForGuestAccess
- the password for the user name; omit for guest access@Kind("command") @Name("path to") String pathTo(Reference theItemPathToReturnEGCurrentApplicationFrontmostApplicationApplicationAppnameMeIt, @Parameter("as") TypeClass theTypeToReturnAliasOrStringDefaultIsAlias)
theItemPathToReturnEGCurrentApplicationFrontmostApplicationApplicationAppnameMeIt
- the item path to return; e.g., current application, frontmost application, application “AppName”, me, ittheTypeToReturnAliasOrStringDefaultIsAlias
- the type to return: alias or string (default is alias)@Kind("command") @Name("path to") String pathTo(Appf theItemPathToReturnEGCurrentApplicationFrontmostApplicationApplicationAppnameMeIt, @Parameter("as") TypeClass theTypeToReturnAliasOrStringDefaultIsAlias)
theItemPathToReturnEGCurrentApplicationFrontmostApplicationApplicationAppnameMeIt
- the item path to return; e.g., current application, frontmost application, application “AppName”, me, ittheTypeToReturnAliasOrStringDefaultIsAlias
- the type to return: alias or string (default is alias)@Kind("command") @Name("path to") Alias pathTo(Afdr theFolderToReturn, @Parameter("from") Fldm whereToLookForTheIndicatedFolder, @Parameter("as") TypeClass theTypeToReturnAliasOrStringDefaultIsAlias, @Parameter("folder creation") boolean createTheFolderIfItDoesnTExistDefaultIsTrue)
theFolderToReturn
- the folder to returnwhereToLookForTheIndicatedFolder
- where to look for the indicated foldertheTypeToReturnAliasOrStringDefaultIsAlias
- the type to return: alias or string (default is alias)createTheFolderIfItDoesnTExistDefaultIsTrue
- Create the folder if it doesn’t exist? (default is true)@Kind("command") @Name("path to resource") Alias pathToResource(String theNameOfTheRequestedResource, @Parameter("in bundle") JaplScriptFile anAliasOrFileReferenceToTheBundleContainingTheResourceDefaultIsTheTargetApplicationOrCurrentScriptBundle, @Parameter("in directory") String theNameOfASubdirectoryInTheBundleSResourcesDirectory)
theNameOfTheRequestedResource
- the name of the requested resourceanAliasOrFileReferenceToTheBundleContainingTheResourceDefaultIsTheTargetApplicationOrCurrentScriptBundle
- an alias or file reference to the bundle containing the resource (default is the target application or current script bundle)theNameOfASubdirectoryInTheBundleSResourcesDirectory
- the name of a subdirectory in the bundle’s “Resources” directory@Kind("command") @Name("ASCII character") String asciiCharacter(int theCodePointOfTheSpecifiedCharacter)
theCodePointOfTheSpecifiedCharacter
- the code point of the specified character@Kind("command") @Name("ASCII number") int asciiNumber(String theCharacter)
theCharacter
- the character@Kind("command") @Name("localized string") String localizedString(String theKey, @Parameter("from table") String theNameOfTheStringsFileExcludingTheStringsSuffixDefaultIsLocalizable, @Parameter("in bundle") JaplScriptFile anAliasOrFileReferenceToTheBundleContainingTheStringsFileDefaultIsTheCurrentApplicationScriptBundle)
theKey
- the keytheNameOfTheStringsFileExcludingTheStringsSuffixDefaultIsLocalizable
- the name of the strings file excluding the “.strings” suffix (default is “Localizable”)anAliasOrFileReferenceToTheBundleContainingTheStringsFileDefaultIsTheCurrentApplicationScriptBundle
- an alias or file reference to the bundle containing the strings file (default is the current application/script bundle)@Kind("command") @Name("offset") int offset(@Parameter("of") String theSourceTextToFindThePositionOf, @Parameter("in") String theTargetTextToSearchIn)
theSourceTextToFindThePositionOf
- the source text to find the position oftheTargetTextToSearchIn
- the target text to search in@Kind("command") @Name("summarize") String summarize(String theTextOrAnAliasToATextFileToSummarize, @Parameter("in") int theNumberOfSentencesDesiredInTheSummary)
theTextOrAnAliasToATextFileToSummarize
- the text (or an alias to a text file) to summarizetheNumberOfSentencesDesiredInTheSummary
- the number of sentences desired in the summary@Kind("command") @Name("summarize") String summarize(Alias theTextOrAnAliasToATextFileToSummarize, @Parameter("in") int theNumberOfSentencesDesiredInTheSummary)
theTextOrAnAliasToATextFileToSummarize
- the text (or an alias to a text file) to summarizetheNumberOfSentencesDesiredInTheSummary
- the number of sentences desired in the summary@Kind("command") @Name("set the clipboard to") void setTheClipboardTo(Reference theDataToPlaceOnTheClipboard)
theDataToPlaceOnTheClipboard
- the data to place on the clipboard@Kind("command") @Name("the clipboard") Reference theClipboard(@Parameter("as") TypeClass theTypeOfDataDesired)
theTypeOfDataDesired
- the type of data desired@Kind("command") @Name("clipboard info") List[] clipboardInfo(@Parameter("for") TypeClass restrictsToInformationAboutOnlyThisDataType)
restrictsToInformationAboutOnlyThisDataType
- restricts to information about only this data type@Kind("command") @Name("open for access") int openForAccess(JaplScriptFile theFileOrAliasToOpenForAccessIfTheFileDoesNotExistANewFileIsCreated, @Parameter("write permission") boolean whetherToAllowWritingToTheFile)
theFileOrAliasToOpenForAccessIfTheFileDoesNotExistANewFileIsCreated
- the file or alias to open for access. If the file does not exist, a new file is created.whetherToAllowWritingToTheFile
- whether to allow writing to the file.@Kind("command") @Name("close access") void closeAccess(Reference theFileReferenceNumberAliasOrFileReferenceOfTheFileToClose)
theFileReferenceNumberAliasOrFileReferenceOfTheFileToClose
- the file reference number, alias, or file reference of the file to close@Kind("command") @Name("read") Reference read(Reference theFileReferenceNumberAliasOrFileReferenceOfTheFileToRead, @Parameter("from") int startingFromThisPositionIfOmittedStartAtLastPositionReadFrom, @Parameter("for") int theNumberOfBytesToReadFromCurrentPositionIfOmittedReadUntilTheEndOfTheFile, @Parameter("to") int OrStopAtThisPosition, @Parameter("before") String OrReadUpToButNotIncludingThisCharacter, @Parameter("until") String OrReadUpToAndIncludingThisCharacter, @Parameter("using delimiter") String theValueThatSeparatesItemsToRead, @Parameter("using delimiters") String[] OrAListOfValuesThatSeparateItemsToRead, @Parameter("as") TypeClass theFormInWhichToReadAndReturnData)
theFileReferenceNumberAliasOrFileReferenceOfTheFileToRead
- the file reference number, alias, or file reference of the file to readstartingFromThisPositionIfOmittedStartAtLastPositionReadFrom
- starting from this position; if omitted, start at last position read fromtheNumberOfBytesToReadFromCurrentPositionIfOmittedReadUntilTheEndOfTheFile
- the number of bytes to read from current position; if omitted, read until the end of the file…OrStopAtThisPosition
- …or stop at this position…OrReadUpToButNotIncludingThisCharacter
- …or read up to but not including this character…OrReadUpToAndIncludingThisCharacter
- …or read up to and including this charactertheValueThatSeparatesItemsToRead
- the value that separates items to read…OrAListOfValuesThatSeparateItemsToRead
- …or a list of values that separate items to readtheFormInWhichToReadAndReturnData
- the form in which to read and return data@Kind("command") @Name("write") void write(Reference theDataToWriteToTheFile, @Parameter("to") Reference theFileReferenceNumberAliasOrFileReferenceOfTheFileToWriteTo, @Parameter("starting at") int startWritingAtThisPositionInTheFile, @Parameter("for") int theNumberOfBytesToWriteIfNotSpecifiedWriteAllTheDataProvided, @Parameter("as") TypeClass howToWriteTheDataAsTextDataListEtc)
theDataToWriteToTheFile
- the data to write to the filetheFileReferenceNumberAliasOrFileReferenceOfTheFileToWriteTo
- the file reference number, alias, or file reference of the file to write tostartWritingAtThisPositionInTheFile
- start writing at this position in the filetheNumberOfBytesToWriteIfNotSpecifiedWriteAllTheDataProvided
- the number of bytes to write; if not specified, write all the data providedhowToWriteTheDataAsTextDataListEtc
- how to write the data: as text, data, list, etc.@Kind("command") @Name("get eof") int getEof(Reference aFileReferenceNumberAliasOrFileReferenceOfAFile)
aFileReferenceNumberAliasOrFileReferenceOfAFile
- a file reference number, alias, or file reference of a file@Kind("command") @Name("set eof") void setEof(Reference aFileReferenceNumberAliasOrFileReferenceOfAFile, @Parameter("to") int theNewLengthOfTheFileInBytesAnyDataBeyondThisPositionIsLost)
aFileReferenceNumberAliasOrFileReferenceOfAFile
- a file reference number, alias, or file reference of a filetheNewLengthOfTheFileInBytesAnyDataBeyondThisPositionIsLost
- the new length of the file, in bytes. Any data beyond this position is lost.@Kind("command") @Name("load script") Reference loadScript(JaplScriptFile anAliasOrFileReferenceToTheFileContainingTheScriptObject)
anAliasOrFileReferenceToTheFileContainingTheScriptObject
- an alias or file reference to the file containing the script object@Kind("command") @Name("store script") void storeScript(Reference theScriptObjectToStore, @Parameter("in") JaplScriptFile anAliasOrFileReferenceToTheFileToStoreTheScriptObjectIn, @Parameter("replacing") Savo controlDisplayOfTheSaveAsDialog)
theScriptObjectToStore
- the script object to storeanAliasOrFileReferenceToTheFileToStoreTheScriptObjectIn
- an alias or file reference to the file to store the script object incontrolDisplayOfTheSaveAsDialog
- control display of the Save As dialog@Kind("command") @Name("run script") Reference runScript(Reference theScriptTextOrAnAliasOrFileReferenceToAScriptFileToRun, @Parameter("with parameters") Reference[] aListOfParameters, @Parameter("in") String theScriptingComponentToUseDefaultIsTheCurrentScriptingComponent)
theScriptTextOrAnAliasOrFileReferenceToAScriptFileToRun
- the script text (or an alias or file reference to a script file) to runaListOfParameters
- a list of parameterstheScriptingComponentToUseDefaultIsTheCurrentScriptingComponent
- the scripting component to use; default is the current scripting component@Kind("command") @Name("scripting components") String[] scriptingComponents()
@Kind("command") @Name("current date") Date currentDate()
@Kind("command") @Name("do shell script") String doShellScript(String theShellScriptToExecute, @Parameter("as") TypeClass theDesiredTypeOfResultDefaultIsTextUtf8, @Parameter("administrator privileges") boolean executeTheCommandAsTheAdministrator, @Parameter("user name") String useThisAdministratorAccountToAvoidAPasswordDialogIfThisParameterIsSpecifiedThePasswordParameterMustAlsoBeSpecified, @Parameter("password") String useThisAdministratorPasswordToAvoidAPasswordDialog, @Parameter("with prompt") String thePromptToBeDisplayedInThePasswordDialogWhenTheNameAndPasswordAreNotSpecifiedOrAreIncorrect, @Parameter("altering line endings") boolean changeAllLineEndingsToMacStyleAndTrimATrailingOneDefaultTrue)
theShellScriptToExecute
- the shell script to execute.theDesiredTypeOfResultDefaultIsTextUtf8
- the desired type of result; default is text (UTF-8)executeTheCommandAsTheAdministrator
- execute the command as the administratoruseThisAdministratorAccountToAvoidAPasswordDialogIfThisParameterIsSpecifiedThePasswordParameterMustAlsoBeSpecified
- use this administrator account to avoid a password dialog (If this parameter is specified, the “password” parameter must also be specified.)useThisAdministratorPasswordToAvoidAPasswordDialog
- use this administrator password to avoid a password dialogthePromptToBeDisplayedInThePasswordDialogWhenTheNameAndPasswordAreNotSpecifiedOrAreIncorrect
- the prompt to be displayed in the password dialog when the name and password are not specified or are incorrectchangeAllLineEndingsToMacStyleAndTrimATrailingOneDefaultTrue
- change all line endings to Mac-style and trim a trailing one (default true)@Kind("command") @Name("get volume settings") VolumeSettings getVolumeSettings()
@Kind("command") @Name("random number") double randomNumber(double theUpperLimitDefaultIs10IfThisParameterIsSpecifiedTheFromAndToParametersWillBeIgnored, @Parameter("from") double theLowestNumberToReturnDefaultIs00, @Parameter("to") double theHighestNumberToReturnDefaultIs10, @Parameter("with seed") int aStartingPointForARepeatableSequenceOfRandomNumbersAValueOf0WillUseARandomSeed)
theUpperLimitDefaultIs10IfThisParameterIsSpecifiedTheFromAndToParametersWillBeIgnored
- the upper limit (Default is 1.0. If this parameter is specified, the “from” and “to” parameters will be ignored.)theLowestNumberToReturnDefaultIs00
- the lowest number to return (default is 0.0)theHighestNumberToReturnDefaultIs10
- the highest number to return (default is 1.0)aStartingPointForARepeatableSequenceOfRandomNumbersAValueOf0WillUseARandomSeed
- a starting point for a repeatable sequence of random numbers. A value of 0 will use a random seed.@Kind("command") @Name("round") int round(double theNumberToRound, @Parameter("rounding") Olie theRoundingDirectionIfOmittedRoundsToNearestToNearestRounds5CasesToTheNearestEvenIntegerInOrderToDecreaseCumulativeErrorsToAlwaysRound5AwayFromZeroUseAsTaughtInSchool)
theNumberToRound
- the number to roundtheRoundingDirectionIfOmittedRoundsToNearestToNearestRounds5CasesToTheNearestEvenIntegerInOrderToDecreaseCumulativeErrorsToAlwaysRound5AwayFromZeroUseAsTaughtInSchool
- the rounding direction; if omitted, rounds to nearest. “to nearest” rounds .5 cases to the nearest even integer in order to decrease cumulative errors. To always round .5 away from zero, use “as taught in school.”@Kind("command") @Name("set volume") void setVolume(double theSoundOutputVolumeARealNumberFrom0To7ThisParameterIsDeprecatedIfSpecifiedAllOtherParametersWillBeIgnored, @Parameter("output volume") int theSoundOutputVolumeAnIntegerFrom0To100, @Parameter("input volume") int theSoundInputVolumeAnIntegerFrom0To100, @Parameter("alert volume") int theAlertVolumeAnIntegerFrom0To100, @Parameter("output muted") boolean shouldTheSoundOutputBeMuted)
theSoundOutputVolumeARealNumberFrom0To7ThisParameterIsDeprecatedIfSpecifiedAllOtherParametersWillBeIgnored
- the sound output volume, a real number from 0 to 7 (This parameter is deprecated; if specified, all other parameters will be ignored.)theSoundOutputVolumeAnIntegerFrom0To100
- the sound output volume, an integer from 0 to 100theSoundInputVolumeAnIntegerFrom0To100
- the sound input volume, an integer from 0 to 100theAlertVolumeAnIntegerFrom0To100
- the alert volume, an integer from 0 to 100shouldTheSoundOutputBeMuted
- Should the sound output be muted?@Kind("command") @Name("system attribute") Reference systemAttribute(Reference theAttributeToTestEitherAGestaltValueOrAShellEnvironmentVariable, @Parameter("has") int testSpecificBitsOfResponseIgnoredForEnvironmentVariables)
theAttributeToTestEitherAGestaltValueOrAShellEnvironmentVariable
- the attribute to test (either a “Gestalt” value or a shell environment variable).testSpecificBitsOfResponseIgnoredForEnvironmentVariables
- test specific bits of response (ignored for environment variables)@Kind("command") @Name("system info") SystemInformation systemInfo()
@Kind("command") @Name("time to GMT") int timeToGmt()
@Kind("command") @Name("opening folder") void openingFolder(Alias theFolderThatWasOpened)
theFolderThatWasOpened
- the folder that was opened@Kind("command") @Name("closing folder window for") void closingFolderWindowFor(Alias theFolderThatWasClosed)
theFolderThatWasClosed
- the folder that was closed@Kind("command") @Name("moving folder window for") void movingFolderWindowFor(Alias theFolderWhoseWindowWasMovedOrResized, @Parameter("from") Rectangle thePreviousCoordinatesOfFolderWindowYouCanGetTheNewCoordinatesFromTheFinder)
theFolderWhoseWindowWasMovedOrResized
- the folder whose window was moved or resizedthePreviousCoordinatesOfFolderWindowYouCanGetTheNewCoordinatesFromTheFinder
- the previous coordinates of folder window (you can get the new coordinates from the Finder)@Kind("command") @Name("adding folder items to") void addingFolderItemsTo(Alias folderReceivingTheNewItems, @Parameter("after receiving") Alias[] aListOfTheItemsTheFolderReceived)
folderReceivingTheNewItems
- Folder receiving the new itemsaListOfTheItemsTheFolderReceived
- a list of the items the folder received@Kind("command") @Name("removing folder items from") void removingFolderItemsFrom(Alias theFolderLosingTheItems, @Parameter("after losing") Alias[] aListOfTheItemsTheFolderLostForPermanentlyDeletedItemsOnlyTheNamesInStringsAreProvided)
theFolderLosingTheItems
- the folder losing the itemsaListOfTheItemsTheFolderLostForPermanentlyDeletedItemsOnlyTheNamesInStringsAreProvided
- a list of the items the folder lost. For permanently deleted items, only the names (in strings) are provided.@Kind("command") @Name("open location") void openLocation(String theUrlToOpen, @Parameter("error reporting") boolean shouldErrorConditionsBeReportedInADialog)
theUrlToOpen
- the URL to openshouldErrorConditionsBeReportedInADialog
- Should error conditions be reported in a dialog?@Kind("command") @Name("handle CGI request") WebPage handleCgiRequest(String thePathOfTheUrl, @Parameter("searching for") String theDataForTheGetMethodOrDataAfterTheInAPostMethod, @Parameter("with posted data") String thePostArguments, @Parameter("of content type") String theMimeContentTypeOfPostArguments, @Parameter("using access method") String eitherGetOrPost, @Parameter("from address") String theIpAddressOfTheEntityMakingTheRequest, @Parameter("from user") String theUserNameAssociatedWithTheRequest, @Parameter("using password") String thePasswordSentWithTheRequest, @Parameter("with user info") String additionalInformationAboutTheUserUsuallyTheEmailAddress, @Parameter("from server") String theNameOfTheServerApplicationSendingThisRequest, @Parameter("via port") String theIpPortNumberOfTheServer, @Parameter("executing by") String thePathToTheScriptExecutingThisCgiInUrlForm, @Parameter("referred by") String theUrlOfThePageTheClientUsedToLinkToTheCgi, @Parameter("from browser") String theNameOfTheClientSoftware, @Parameter("using action") String thePathToTheFileOrCgi, @Parameter("of action type") String eitherPreprocessorPostprocessorCgiOrAcgi, @Parameter("from client IP address") String theInternetAddressOfTheClient, @Parameter("with full request") String theFullRequestAsSentToTheServer, @Parameter("with connection ID") int theIdOfTheConnectionFromTheServerToTheClient, @Parameter("from virtual host") String theUrlOfTheRootFolderOfTheVirtualHost)
thePathOfTheUrl
- the path of the URLtheDataForTheGetMethodOrDataAfterTheInAPostMethod
- the data for the GET method or data after the ‘?’ in a POST methodthePostArguments
- the POST argumentstheMimeContentTypeOfPostArguments
- the MIME content type of POST argumentseitherGetOrPost
- either ‘GET’ or ‘POST’theIpAddressOfTheEntityMakingTheRequest
- the IP address of the entity making the requesttheUserNameAssociatedWithTheRequest
- the user name associated with the requestthePasswordSentWithTheRequest
- the password sent with the requestadditionalInformationAboutTheUserUsuallyTheEmailAddress
- additional information about the user, usually the email addresstheNameOfTheServerApplicationSendingThisRequest
- the name of the server application sending this requesttheIpPortNumberOfTheServer
- the IP port number of the serverthePathToTheScriptExecutingThisCgiInUrlForm
- the path to the script executing this CGI, in URL formtheUrlOfThePageTheClientUsedToLinkToTheCgi
- the URL of the page the client used to link to the CGItheNameOfTheClientSoftware
- the name of the client softwarethePathToTheFileOrCgi
- the path to the file or CGIeitherPreprocessorPostprocessorCgiOrAcgi
- either PREPROCESSOR, POSTPROCESSOR, CGI, or ACGItheInternetAddressOfTheClient
- the Internet address of the clienttheFullRequestAsSentToTheServer
- the full request as sent to the servertheIdOfTheConnectionFromTheServerToTheClient
- the ID of the connection from the server to the clienttheUrlOfTheRootFolderOfTheVirtualHost
- the URL of the root folder of the virtual hostMap<String,Object> getProperties()
static ScriptingAddition getInstance()