/*-----------------------------------------------------------------------
ADOBE SYSTEMS INCORPORATED
Copyright 2007 - Adobe Systems Incorporated
All Rights Reserved
If this file is provided by Adobe in modifiable form (e.g., source
code or JavaScript), then you may modify this file.
You may use and distribute this file, in modified or unmodified form,
provided that you must reproduce the above acknowledgement and this
notice with all copies of the file.
THIS SOFTWARE IS PROVIDED BY ADOBE SYSTEMS INCORPORATED 'AS IS' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ADOBE BE
LIABLE TO YOU FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-----------------------------------------------------------------------*/
/*
@@@BUILDINFO@@@ AdobeIllustratorAutomation.jsx 2.0 203 25-Jan-2007
*/
/*
@@@START_XML@@@
Adobe Illustrator Automation CS3
Automates the tracing of image files using Illustrator's Live Trace feature.
Adobe Illustrator-Automatisierung CS3
Automatisiert das Abpausen von Bilddateien mit der Illustrator-Funktion 'Interaktiv abpausen'.
Automatisation Adobe Illustrator CS3
Automatise la vectorisation des fichiers images à l'aide de la fonction de vectorisation dynamique d'Illustrator.
Adobe Illustrator Automation CS3
Illustrator の Live Trace 機能を使用して画像ファイルのトレースを自動化します。
Adobe Illustrator-automatisering CS3
Automatiserer vektorisering af billedfiler ved hjælp af funktionen Dynamisk vektorisering i Illustrator.
Automatización de Adobe Illustrator CS3
Automatiza el calco de archivos de imágenes con la función Calco interactivo de Illustrator.
Automazione di Adobe Illustrator CS3
Consente il ricalco automatico di file di immagini mediante la funzione Ricalco dinamico di Illustrator.
Adobe Illustrator Automatisering CS3
Automatisch afbeeldingsbestanden overtrekken met de functie Actief overtrekken van Illustrator.
Adobe Illustrator Automation CS3
Automatiserar kalkeringen av bilder genom att använda direktkalkeringsfunktionen som finns i Illustrator.
Adobe Illustrator 자동화 CS3
Illustrator의 라이브 추적 기능을 사용하여 이미지 파일 추적을 자동화합니다.
Adobe Illustrator Automation CS3
使用 Illustrator 的“实时描摹”功能来实现图像文件描摹的自动化。
Adobe Illustrator 自動化 CS3
使用 Illustrator 的「即時描圖」功能在影像檔案中進行自動描圖。
Automatizace pro Adobe Illustrator CS3
Automatizuje vektorizaci obrazových souborů s použitím funkce Živá vektorizace Illustratoru.
Αυτοματισμός Adobe Illustrator CS3
Αυτοματοποιεί τον εντοπισμό αρχείων εικόνας, χρησιμοποιώντας τη λειτουργία Live Trace του Illustrator.
Adobe Illustrator Otomasyon CS3
Illustrator'ın Canlı Kontur özelliğini kullanarak görüntü dosyalarının izlenmesini otomatikleştirir.
Adobe Illustrator automatizálás CS3
Automatizálja a képfájloknak az Illustrator Élő kontúr szolgáltatásával való kontúrozását.
Automatizare Adobe Illustrator CS3
Automatizează urmărirea fişierelor de imagine utilizând caracteristica Vectorizare dinamică din Illustrator
Автоматизація в Adobe Illustrator CS3
Автоматизує трасування файлів зображення за допомогою можливості Live Trace програми Illustrator.
Automatyzacja Adobe Illustrator CS3
Automatyzuje obrys obrazów przy pomocy funkcji programu Illustrator: Aktywny obrys.
Adobe Illustrator Automation CS3
Автоматизирует трассировку изображений с помощью средства Illustrator "Быстрая трассировка".
Adobe Illustrator Automation CS3
.Illustrator يقوم بتتبع ملفات الصور باستخدام خاصية التتبع المباشر في
Adobe Illustrator Automation CS3
.Illustrator אוטומציית עקיבה של קובצי תמונה בעזרת תכונת 'עקיבה חיה' של
@@@END_XML@@@
*/
/** Installs the Adobe Illustrator Automation extension on Bridge startup -
currently one script is managed by this extension - LiveTrace_AI.jsx.
1. Creates the Tools > Illustrator menu in Bridge if it is not already there
2. Creates the Tools > Illustrator > Live Trace... menu in Bridge
3. Lazy loads the LiveTrace_AI.jsx script and calls it when the
Live Trace menu is selected.
The minimal amount of work to install underlying scripts is done by
AdobeIllustratorAutomation.jsx so that the impact on Bridge launch times
is kept low.
*/
if (BridgeTalk.appName == "bridge" ) {
AdobeIllustratorAutomation = {};
// Underlying scripts should be in a Resources folder alongside this script.
AdobeIllustratorAutomation.resourcesFolderPath = File($.fileName).path + "/Resources";
// The intervening lines contain helper functions, skip to the foot
// of the file to see the extensions installed in the Bridge UI.
/** Creates a menu element in the Bridge UI.
*/
AdobeIllustratorAutomation.createMenu = function( type, text, where, id) {
var aMenu = null;
aMenu = MenuElement.find( id );
if ( aMenu == null ) {
aMenu = MenuElement.create( type, text, where, id );
}
aMenu.enabled = true;
return aMenu;
}
/** Executes the script associated with a menu, the script is
loaded then called when the user clicks the menu.
*/
AdobeIllustratorAutomation.executeMenu = function( menu ) {
try {
if ( !menu.scriptFile.hasBeenLoaded ) {
$.evalFile( menu.scriptFile );
menu.scriptFile.hasBeenLoaded = true;
}
var exeString = menu.scriptExecutor;
eval( exeString ); // if this fails, the script hasn't been loaded
} catch ( e ) {
var msg = menu.text + localize( "$$$/AIA/ScriptFailedToLoad= failed to load properly: " ) + "\n";
msg += localize( "$$$/AIA/ScriptFile=Script File: " ) + decodeURI( menu.scriptFile.name ) + "\n";
msg += localize( "$$$/AIA/LineNumber=Line Number: " ) + e.line + "\n";
msg += e;
alert( msg );
}
}
/** Creates the Tools > Illustrator > Live Trace menu menu in the Bridge UI
and connects that menu to the code to be executed when the menu is
selected.
*/
AdobeIllustratorAutomation.createLiveTraceMenu = function() {
AdobeIllustratorAutomation.menu = AdobeIllustratorAutomation.createMenu( "command", localize("$$$/AIA/LiveTraceMenu=Live Trace..."), "at the end of tools/ai", "tools/ai/LiveTrace");
AdobeIllustratorAutomation.menu.onSelect = AdobeIllustratorAutomation.executeMenu;
AdobeIllustratorAutomation.menu.scriptFile = new File( AdobeIllustratorAutomation.resourcesFolderPath + "/LiveTrace_AI.jsx" );
AdobeIllustratorAutomation.menu.scriptExecutor = "LiveTrace_AI.doLiveTraceMenuOnSelect();";
}
// Create Tools > Illustrator menu - the root menu for Adobe Illustrator Automation.
// If you change the menu path remember to change it in LiveTrace_AI.createLiveTraceMenu aswell.
AdobeIllustratorAutomation.createMenu( "menu", localize("$$$/AIA/ToolsAIMenu=Illustrator"), "at the end of tools", "tools/ai" );
// Create the Live Trace menu in the Bridge UI.
AdobeIllustratorAutomation.createLiveTraceMenu();
} // end if (BridgeTalk.appName == "bridge" )