/* @@@BUILDINFO@@@ AdobeStockPhotos.jsx 466 16-March-2007 */ /************************************************************************* * * ADOBE CONFIDENTIAL * ___________________ * * Copyright 2005 Adobe Systems Incorporated * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Adobe Systems Incorporated and its suppliers, * if any. The intellectual and technical concepts contained * herein are proprietary to Adobe Systems Incorporated and its * suppliers and may be covered by U.S. and Foreign Patents, * patents in process, and are protected by trade secret or copyright law. * Dissemination of this information or reproduction of this material * is strictly forbidden unless prior written permission is obtained * from Adobe Systems Incorporated. **************************************************************************/ /* @@@START_XML@@@ Adobe Stock Photos This script enables other applications to communicate with Adobe Stock Photos Adobe Stock Photos Dette script betyder, at andre programmer kan kommunikere med Adobe Stock Photos http://www.adobe.com/downloads/updates/ Adobe Stock Photos Mithilfe dieses Skripts können andere Anwendungen mit Adobe Stock Photos kommunizieren. http://www.adobe.com/downloads/updates/ Adobe Stock Photos Este script posibilita que otras aplicaciones se comuniquen con Adobe Stock Photos http://www.adobe.com/downloads/updates/ Adobe Stock Photos Tämän komentosarjan avulla muut sovellukset ja Adobe Stock Photos voivat kommunikoida keskenään http://www.adobe.com/downloads/updates/ Adobe Stock Photos Ce script permet à d'autres applications de communiquer avec Adobe Stock Photos. http://www.adobe.com/downloads/updates/ Adobe Stock Photos Questo script consente ad altre applicazioni di comunicare con Adobe Stock Photos http://www.adobe.com/downloads/updates/ Adobe Stock Photos このスクリプトは、他のアプリケーションと Adobe Stock Photos との通信を有効にします。 http://www.adobe.com/downloads/updates/ Adobe Stock Photos "이 스크립트를 사용하면 다른 응용 프로그램에서 Adobe Stock Photos ê³¼(와) í†µì‹ í• ìˆ˜ 있습니다. http://www.adobe.com/downloads/updates/ Adobe Stock Photos Skriptet gjør at andre programmer kan kommunisere med Adobe Stock Photos http://www.adobe.com/downloads/updates/ Adobe Stock Photos Dit script laat andere toepassingen toe te communiceren met Adobe Stock Photos http://www.adobe.com/downloads/updates/ Adobe Stock Photos Este script permite que outros aplicativos se comuniquem com o Adobe Stock Photos http://www.adobe.com/downloads/updates/ Adobe Stock Photos Det här skriptet gör det möjligt för andra program att kommunicera med Adobe Stock Photos http://www.adobe.com/downloads/updates/ Adobe Stock Photos "此脚本使其它应用程序能够与 Adobe Stock Photos 进行通信 http://www.adobe.com/downloads/updates/ Adobe Stock Photos "此指令碼能讓其他應用程式與 Adobe Stock Photos 進行通訊。 http://www.adobe.com/downloads/updates/ @@@END_XML@@@ */ $.level=0; // stockphoto_insideBridgeApp - Indicates whether Bridge is loading this script var stockphoto_insideBridgeApp = false; // stockphoto_exist - Indicates whether StockPhotos 1.0.x has already been loaded var stockphoto_exist = false; // First, check if Bridge is loading this script. if ( BridgeTalk.appName == "bridge" ) { stockphoto_insideBridgeApp = true; } try { // Note: Don't use 'if (stockphoto != undefined)' comparisons for this check // since it is a possibility that stockphoto itself is not defined at this point // by the older script if ( ( typeof stockphoto != "undefined" ) && ( typeof stockphoto.core != "undefined") ) { stockphoto_exist = true; } } catch(e) { ; } // Check if Stock Photos is ever loaded // -> on MAC, use the existing one // -> on Win, discard the existing and use the new one if ( stockphoto_insideBridgeApp && stockphoto_exist ) { // Since stockphoto_exist is true, both 'stockphoto' and 'stockphoto.core' // exist and are not undefined at this point try { // unload BM library and release resources, if it's already loaded if( ( typeof stockphoto.core.BoxCar != "undefined" )&& ( typeof stockphoto.core.BoxCar.AnalyzeXmlFileObj != "undefined" ) ) { stockphoto.core.BoxCar.AnalyzeXmlFileObj.removeMem(); delete stockphoto.core.BoxCar.AnalyzeXmlFileObj; stockphoto.core.BoxCar.AnalyzeXmlFileObj = undefined; } if( ( typeof stockphoto.HTMLUtil != "undefined" )&& ( typeof stockphoto.HTMLUtil.ConvertToPriceStringObj != "undefined" ) ) { delete stockphoto.HTMLUtil.ConvertToPriceStringObj; stockphoto.HTMLUtil.ConvertToPriceStringObj = undefined; } if ( ( typeof stockphoto.core.eventTaskID != "undefined" ) && ( stockphoto.core.eventTaskID != 0) ) { app.cancelTask(stockphoto.core.eventTaskID, false); stockphoto.core.eventTaskID = 0; } if ( ( typeof stockphoto.core.init != "undefined" ) && ( typeof stockphoto.core.init.isScriptLoaded != "undefined" ) && ( stockphoto.core.init.isScriptLoaded ) ) { stockphoto.impl.terminate(); stockphoto.impl = undefined; stockphoto.lib = undefined; } } catch(e) { /* failing to release resources that might have been loaded by the previous startup script*/ ; } try { // remove previous event handler app.eventHandlers[ ( app.eventHandlers.length - 1 ) ].handler = function(event){ var result={handled:false}; return result; }; } catch(e) { /* we failed to install eventHandler at previous time */ ; } } // stockphoto_needToLoad && stockphoto_exist // It's OK to declare stockphoto here for global use. // If it's already defined, this statement will have no effect. // http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf (Section 10.1.3) var stockphoto; if ( stockphoto_insideBridgeApp ) // Bridge 2.0+ is loading us... { stockphoto = { }; stockphoto.timeKeeper = { }; // stockphoto.timeKeeperOn = true; // When the switch "stockphoto.timeKeeperOn" above is set to be true, // a log entry is created in the script log file. The log says which // jsx component is loaded, when it starts and when it finish. if( ( typeof stockphoto.timeKeeperOn != "undefined" ) && ( stockphoto.timeKeeperOn ) ) { stockphoto.timeKeeper.StartUpJsx = {}; stockphoto.timeKeeper.StartUpJsx.StTime = new Date(); } stockphoto.isMac = (File.fs == "Macintosh"); stockphoto.isWin = (File.fs == "Windows"); stockphoto.paths = { }; if(stockphoto.isMac) { stockphoto.paths.scripts = Folder.startup + "/../../../../Adobe Stock Photos CS3/Adobe Stock Photos CS3.app/Contents/Resources/Scripts" ; stockphoto.startUpFolderForMac = Folder.startup.fsName + "/../../../../Adobe Stock Photos CS3/Adobe Stock Photos CS3.app/Contents"; } else { stockphoto.paths.scripts = Folder.startup + "/../Adobe Stock Photos CS3"; } stockphoto.loadScript = function (path) { var file = File(path); var result; if (file.exists) { file.open(); var script = file.read(); file.close(); result = eval(script); } return result; }; try { //RSS: The following line has been changed from loading 'st00Core.jsx' to minimize the //load time for Bridge. stockphoto.loadScript(stockphoto.paths.scripts + "/st22Init.jsx"); } catch (error) { Window.alert(error); } } else { stockphoto = { }; // Point App APIs stockphoto.displayStartPage = function( maximize ) { if (maximize == undefined) { maximize = false; } var bt = new BridgeTalk; bt.target = "bridge"; bt.body = "stockphoto.pointApp.displayStartPage(" + maximize + ");"; bt.send(); return 0; } stockphoto.buy = function( imageIdList ) { var bt=new BridgeTalk; bt.target = "bridge"; bt.body = "stockphoto.buy(" + imageIdList + ");"; bt.send(); return 0; } stockphoto.checkLicense = function( imageIdList ) { var bt=new BridgeTalk; bt.target = "bridge"; bt.body = "stockphoto.checkLicense(" + imageIdList + ");"; bt.send(); return 0; } } // Defined Point Products API