Plug-Ins
From version 1.6.1, SyncTunes provides the ability to run user generated Applescript at the start and end of the Sync process.
A plug-in is simply an Applescript script file that performs a user-specific function. Different plug-in scripts can be used at the start and end of the sync , or the same script can be used. Additionally, a plug-in script can be set to run at the start or end of the sync, or both. The Advanced:Plug-Ins menu is used to access the plug-in settings.
The Pre-Sync plug-in is run at the very start of the Sync process, and so allows for any setup activities that may be needed.
The Post-Sync plug-in is run after the generation of the M3U playlists and general tidying up, but before the volume would be ejected.
A template plug-in script is provided in the SyncTunes download, and can be edited in the standard Applescript Script Editor. The template includes preset variable declarations to most of SyncTunes' settings.
Notes:
- A time limit of 15 minutes is set for running the plug-in, and should be enough to burn a CD if that is the objective of the post-sync plug-in.
- A plug-in will run with the same privilege as the user, and has access to everything that the user has access to. What the plug-in does depends on the code (obviously) so please double check before using a plug-in. I would advise that only readable plug-in scripts are used.
- Don't make direct calls to SyncTunes, doing so will not be answered as SyncTunes is waiting for the plug-in to finish.
- Don't write to the SyncTunes preferences as they will be overwritten and lost.
Advance Menu settings
- Select Pre-Sync and Post-Sync plug-in scripts to fine tune the Sync process.
Options:
-
Pre-Sync plugin option: this option,
when selected, enables the running of the selected
script at the start of the Sync process
- Select button: selects the pre-sync plug-in Applescript script file.
-
Post-Sync plugin option: this option,
when selected, enables the running of the selected
script at the end of the Sync process
- Select button: selects the post-sync plug-in Applescript script file.
