( NSArray *) findTrack :( NSString *) x // Finds tracks for the given path ( void) rescanTags :( NSArray *) x // rescan tags on tracks ( void) notify // show currently playing track notification ( void) addTracks :( NSArray *) tracks to :(SwinsianNormalPlaylist *) to // add a track to a playlist ( void) previousTrack // skip back to the previous track ( NSArray *) searchPlaylist :(SwinsianPlaylist *) playlist for :( NSString *) for_ // search a playlist for tracks matching a string
( void) nextTrack // skip to the next track in the current playlist ( void) play // begin playing the current playlist ( void) quitSaving :(SwinsianSaveOptions) saving // Quit an application. ( void) print :( NSURL *) x // Print an object. ( void) open :( NSURL *) x // Open an object. (0 minimum, 100 ( readonly) SwinsianPlayerState playerState // are we stopped, paused or still ( copy, readonly) SwinsianQueue *playbackQueue // the currently queued ( copy) SwinsianAudioDevice *outputDevice // current audio output device (SBElementArray *) ( copy, readonly) NSString *name // The name of the ( readonly) BOOL frontmost // Is this the frontmost (active) ( copy, readonly) NSString *version // The version of the NSInteger playerPosition // the player’s position within the currently playing track in ( copy, readonly) SwinsianTrack *currentTrack // the currently playing ( copy) NSNumber *soundVolume // the volume. The SwinsianApplication : SBApplication ( NSNumber *) id // The unique identifier of the NSRect bounds // The bounding rectangle of the ( readonly) BOOL closeable // Whether the window has a close ( readonly) BOOL titled // Whether the window has a title ( copy) NSNumber *index // The index of the window in the back-to-front window ( readonly) BOOL floating // Whether the window ( readonly) BOOL miniaturizable // Whether the window can be BOOL miniaturized // Whether the window is currently ( readonly) BOOL modal // Whether the window is the application's current modal ( readonly) BOOL resizable // Whether the window can be BOOL visible // Whether the window is currently ( readonly) BOOL zoomable // Whether the window can be BOOL zoomed // Whether the window is currently ( copy, readonly) NSArray *selection // Currently seleted Swinsian Suite
A scriptable SwinsianItem : SBObject ( copy) NSDictionary *properties // All of the object's A SwinsianColor : SBObject A SwinsianWindow : SBObject ( copy) NSString *name // The full title of the window. ( void) saveIn :( NSURL *) in_ as :( NSString *) as // Save an Standard Suite ( void) moveTo :(SBObject *) to // Move object(s) to a new location.
( BOOL) exists // Verify if an object exists. ( void) duplicateTo :(SBObject *) to withProperties :( NSDictionary *) withProperties // Copy object(s) and put the copies at a new location. ( void) closeSaving :(SwinsianSaveOptions) saving savingIn :( NSURL *) savingIn // Close an object. Typedef enum SwinsianPlayerState SwinsianGenericMethods Typedef enum SwinsianSaveOptions SwinsianSaveOptions SwinsianSaveOptionsAsk = 'ask ' /* Ask the user whether or not to save the file. SwinsianSaveOptionsNo = 'no ' /* Do not save the file. SwinsianSaveOptionsYes = 'yes ' /* Save the file. # import SwinsianItem, SwinsianColor, SwinsianWindow, SwinsianApplication, SwinsianPlaylist, SwinsianLibrary, SwinsianTrack, SwinsianLibraryTrack, SwinsianIPodTrack, SwinsianQueue, SwinsianSmartPlaylist, SwinsianNormalPlaylist, SwinsianPlaylistFolder, SwinsianAudioDevice * sdef /Applications/Swinsian.app | sdp -fh -basename Swinsian