/************************************************************************* * * 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. **************************************************************************/ $.level=0; stockphoto = { }; if ( BridgeTalk.appName == "bridge" ) { stockphoto.isMac = (File.fs == "Macintosh"); stockphoto.isWin = (File.fs == "Windows"); stockphoto.paths = { }; stockphoto.paths.scripts = Folder.startup + ((stockphoto.isMac) ? "/../Resources/Scripts" : "/../Adobe Stock Photos"); stockphoto.loadScript = function (path) { var file = File(path); var result; if (file.exists) { file.open(); script = file.read(); file.close(); result = eval(script); } return result; }; try { stockphoto.loadScript(stockphoto.paths.scripts + "/st00Core.jsx"); } catch (error) { Window.alert(error); } } else { // *************** // 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; } };