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 |
add(MediaItem[] theListOfMediaItemsToAdd,
Album theAlbumToAddTo) |
Add media items to an album.
|
int |
count(Reference theObjectsToBeCounted,
TypeClass theClassOfObjectsToBeCounted) |
Return the number of elements of a particular class within an object.
|
default int |
countAlbums() |
All user created albums in the library, in no specific order.
|
int |
countAlbums(String filter) |
All user created albums in the library, in no specific order.
|
default int |
countContainers() |
Top level containers in the library, including user created albums and folders, as well as the favorites album.
|
int |
countContainers(String filter) |
Top level containers in the library, including user created albums and folders, as well as the favorites album.
|
default int |
countFolders() |
All user created folders in the library, in no specific order.
|
int |
countFolders(String filter) |
All user created folders in the library, in no specific order.
|
default int |
countMediaItems() |
Media items in the library.
|
int |
countMediaItems(String filter) |
Media items in the library.
|
default int |
countMoments() |
Moments in the library.
|
int |
countMoments(String filter) |
Moments in the library.
|
void |
delete(Album theAlbumOrFolderToDelete) |
Delete an object.
|
void |
delete(Folder theAlbumOrFolderToDelete) |
Delete an object.
|
MediaItem |
duplicate(MediaItem theMediaItemToDuplicate) |
Duplicate an object.
|
boolean |
exists(Reference theObjectSToCheck) |
Verify that an object exists.
|
void |
export(MediaItem[] theListOfMediaItemsToExport,
JaplScriptFile theDestinationOfTheExport,
boolean exportTheOriginalFilesIfTrueOtherwiseExportRenderedJpgsDefaultsToFalse) |
Export media items to the specified location as files.
|
Album |
getAlbum(int index) |
All user created albums in the library, in no specific order.
|
Album |
getAlbum(Id id) |
All user created albums in the library, in no specific order.
|
default Album[] |
getAlbums() |
All user created albums in the library, in no specific order.
|
Album[] |
getAlbums(String filter) |
All user created albums in the library, in no specific order.
|
Container |
getContainer(int index) |
Top level containers in the library, including user created albums and folders, as well as the favorites album.
|
Container |
getContainer(Id id) |
Top level containers in the library, including user created albums and folders, as well as the favorites album.
|
default Container[] |
getContainers() |
Top level containers in the library, including user created albums and folders, as well as the favorites album.
|
Container[] |
getContainers(String filter) |
Top level containers in the library, including user created albums and folders, as well as the favorites album.
|
Album |
getFavoritesAlbum() |
Favorited media items album.
|
Folder |
getFolder(int index) |
All user created folders in the library, in no specific order.
|
Folder |
getFolder(Id id) |
All user created folders in the library, in no specific order.
|
default Folder[] |
getFolders() |
All user created folders in the library, in no specific order.
|
Folder[] |
getFolders(String filter) |
All user created folders in the library, in no specific order.
|
static Application |
getInstance() |
Returns an instance for application Photos.
|
Album |
getLastImportAlbum() |
Last import album.
|
MediaItem |
getMediaItem(int index) |
Media items in the library.
|
MediaItem |
getMediaItem(Id id) |
Media items in the library.
|
default MediaItem[] |
getMediaItems() |
Media items in the library.
|
MediaItem[] |
getMediaItems(String filter) |
Media items in the library.
|
Moment |
getMoment(int index) |
Moments in the library.
|
Moment |
getMoment(Id id) |
Moments in the library.
|
default Moment[] |
getMoments() |
Moments in the library.
|
Moment[] |
getMoments(String filter) |
Moments in the library.
|
String |
getName() |
The name of the application.
|
Map<String,Object> |
getProperties() |
Returns all properties for an instance of this class.
|
Album |
getRecentlyDeletedAlbum() |
The set of recently deleted media items.
|
MediaItem[] |
getSelection() |
The currently selected media items in the application.
|
String |
getVersion() |
The version number of the application.
|
MediaItem[] |
import_(JaplScriptFile[] theListOfFilesToCopy,
Album theAlbumToImportInto,
boolean skipDuplicateCheckingAndImportEverythingDefaultsToFalse) |
Import files into the library.
|
boolean |
isFrontmost() |
Is this the active application?
|
boolean |
isSlideshowRunning() |
Returns true if a slideshow is currently running.
|
Album |
make(TypeClass theClassOfTheNewObjectAllowedValuesAreAlbumOrFolder,
String theNameOfTheNewObject,
Folder theParentFolderForTheNewObject) |
Create a new object.
|
<T extends Reference> |
make(Class<T> klass) |
Create a new object.
|
void |
nextSlide() |
Skip to next slide in currently-playing slideshow.
|
void |
open(JaplScriptFile thePhotoLibraryToBeOpened) |
Open a photo library.
|
void |
pauseSlideshow() |
Pause the currently-playing slideshow.
|
void |
previousSlide() |
Skip to previous slide in currently-playing slideshow.
|
void |
quit() |
Quit the application.
|
void |
resumeSlideshow() |
Resume the currently-playing slideshow.
|
MediaItem[] |
search(String theTextToSearchFor) |
Search for items matching the search string.
|
void |
spotlight(Container theFullPathToTheImage) |
Show the image at path in the application, used to show spotlight search results.
|
void |
spotlight(MediaItem theFullPathToTheImage) |
Show the image at path in the application, used to show spotlight search results.
|
void |
spotlight(String theFullPathToTheImage) |
Show the image at path in the application, used to show spotlight search results.
|
void |
startSlideshow(MediaItem[] theMediaItemsToShow) |
Display an ad-hoc slide show from a list of media items, an album, or a folder.
|
void |
stopSlideshow() |
End the currently-playing slideshow.
|
cast, getApplicationReference, getObjectReference, getTypeClass, isInstanceOf
static final TypeClass CLASS
@Kind("command") @Name("count") int count(Reference theObjectsToBeCounted, @Parameter("each") TypeClass theClassOfObjectsToBeCounted)
theObjectsToBeCounted
- The objects to be counted.theClassOfObjectsToBeCounted
- The class of objects to be counted.@Kind("command") @Name("exists") boolean exists(Reference theObjectSToCheck)
theObjectSToCheck
- The object(s) to check.@Kind("command") @Name("open") void open(JaplScriptFile thePhotoLibraryToBeOpened)
thePhotoLibraryToBeOpened
- The photo library to be opened.@Kind("command") @Name("import") MediaItem[] import_(JaplScriptFile[] theListOfFilesToCopy, @Parameter("into") Album theAlbumToImportInto, @Parameter("skip check duplicates") boolean skipDuplicateCheckingAndImportEverythingDefaultsToFalse)
theListOfFilesToCopy
- The list of files to copy.theAlbumToImportInto
- The album to import into.skipDuplicateCheckingAndImportEverythingDefaultsToFalse
- Skip duplicate checking and import everything, defaults to false.@Kind("command") @Name("export") void export(MediaItem[] theListOfMediaItemsToExport, @Parameter("to") JaplScriptFile theDestinationOfTheExport, @Parameter("using originals") boolean exportTheOriginalFilesIfTrueOtherwiseExportRenderedJpgsDefaultsToFalse)
theListOfMediaItemsToExport
- The list of media items to export.theDestinationOfTheExport
- The destination of the export.exportTheOriginalFilesIfTrueOtherwiseExportRenderedJpgsDefaultsToFalse
- Export the original files if true, otherwise export rendered jpgs. defaults to false.@Kind("command") @Name("duplicate") MediaItem duplicate(MediaItem theMediaItemToDuplicate)
theMediaItemToDuplicate
- The media item to duplicate@Kind("command") @Name("make") Album make(@Parameter("new") TypeClass theClassOfTheNewObjectAllowedValuesAreAlbumOrFolder, @Parameter("named") String theNameOfTheNewObject, @Parameter("at") Folder theParentFolderForTheNewObject)
theClassOfTheNewObjectAllowedValuesAreAlbumOrFolder
- The class of the new object, allowed values are album or foldertheNameOfTheNewObject
- The name of the new object.theParentFolderForTheNewObject
- The parent folder for the new object.@Kind("make") <T extends Reference> T make(Class<T> klass)
klass
- Java type of the object to create.@Kind("command") @Name("delete") void delete(Album theAlbumOrFolderToDelete)
theAlbumOrFolderToDelete
- The album or folder to delete.@Kind("command") @Name("delete") void delete(Folder theAlbumOrFolderToDelete)
theAlbumOrFolderToDelete
- The album or folder to delete.@Kind("command") @Name("add") void add(MediaItem[] theListOfMediaItemsToAdd, @Parameter("to") Album theAlbumToAddTo)
theListOfMediaItemsToAdd
- The list of media items to add.theAlbumToAddTo
- The album to add to.@Kind("command") @Name("start slideshow") void startSlideshow(@Parameter("using") MediaItem[] theMediaItemsToShow)
theMediaItemsToShow
- The media items to show.@Kind("command") @Name("stop slideshow") void stopSlideshow()
@Kind("command") @Name("next slide") void nextSlide()
@Kind("command") @Name("previous slide") void previousSlide()
@Kind("command") @Name("pause slideshow") void pauseSlideshow()
@Kind("command") @Name("resume slideshow") void resumeSlideshow()
@Kind("command") @Name("spotlight") void spotlight(String theFullPathToTheImage)
theFullPathToTheImage
- The full path to the image@Kind("command") @Name("spotlight") void spotlight(MediaItem theFullPathToTheImage)
theFullPathToTheImage
- The full path to the image@Kind("command") @Name("spotlight") void spotlight(Container theFullPathToTheImage)
theFullPathToTheImage
- The full path to the image@Kind("command") @Name("search") MediaItem[] search(@Parameter("for") String theTextToSearchFor)
theTextToSearchFor
- The text to search for@Code("pnam") @Kind("property") @Name("name") @Type("text") String getName()
@Code("pisf") @Kind("property") @Name("frontmost") @Type("boolean") boolean isFrontmost()
@Code("vers") @Kind("property") @Name("version") @Type("text") String getVersion()
@Kind("element") @Type("container") default Container[] getContainers()
Container
s@Kind("element") @Type("container") Container[] getContainers(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"Container
s@Kind("element") @Type("container") Container getContainer(int index)
index
- index into the element list (zero-based)Container
at the requested index@Kind("element") @Type("container") Container getContainer(Id id)
id
- id of the itemContainer
with the requested id@Kind("element") @Type("container") default int countContainers()
Container
s@Kind("element") @Type("container") int countContainers(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Kind("element") @Type("album") default Album[] getAlbums()
Album
s@Kind("element") @Type("album") Album[] getAlbums(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"Album
s@Kind("element") @Type("album") Album getAlbum(int index)
index
- index into the element list (zero-based)Album
at the requested index@Kind("element") @Type("album") Album getAlbum(Id id)
id
- id of the itemAlbum
with the requested id@Kind("element") @Type("album") default int countAlbums()
Album
s@Kind("element") @Type("album") int countAlbums(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Kind("element") @Type("folder") default Folder[] getFolders()
Folder
s@Kind("element") @Type("folder") Folder[] getFolders(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"Folder
s@Kind("element") @Type("folder") Folder getFolder(int index)
index
- index into the element list (zero-based)Folder
at the requested index@Kind("element") @Type("folder") Folder getFolder(Id id)
id
- id of the itemFolder
with the requested id@Kind("element") @Type("folder") default int countFolders()
Folder
s@Kind("element") @Type("folder") int countFolders(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Kind("element") @Type("media item") default MediaItem[] getMediaItems()
MediaItem
s@Kind("element") @Type("media item") MediaItem[] getMediaItems(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"MediaItem
s@Kind("element") @Type("media item") MediaItem getMediaItem(int index)
index
- index into the element list (zero-based)MediaItem
at the requested index@Kind("element") @Type("media item") MediaItem getMediaItem(Id id)
id
- id of the itemMediaItem
with the requested id@Kind("element") @Type("media item") default int countMediaItems()
MediaItem
s@Kind("element") @Type("media item") int countMediaItems(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Kind("element") @Type("moment") default Moment[] getMoments()
Moment
s@Kind("element") @Type("moment") Moment[] getMoments(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"Moment
s@Kind("element") @Type("moment") Moment getMoment(int index)
index
- index into the element list (zero-based)Moment
at the requested index@Kind("element") @Type("moment") Moment getMoment(Id id)
id
- id of the itemMoment
with the requested id@Kind("element") @Type("moment") default int countMoments()
Moment
s@Kind("element") @Type("moment") int countMoments(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Code("selc") @Kind("property") @Name("selection") @Type("media item") MediaItem[] getSelection()
@Code("fvAl") @Kind("property") @Name("favorites album") @Type("album") Album getFavoritesAlbum()
@Code("lstI") @Kind("property") @Name("last import album") @Type("album") Album getLastImportAlbum()
@Code("SSrn") @Kind("property") @Name("slideshow running") @Type("boolean") boolean isSlideshowRunning()
@Code("trAl") @Kind("property") @Name("recently deleted album") @Type("album") Album getRecentlyDeletedAlbum()
Map<String,Object> getProperties()
static Application getInstance()