#target bridge-2.0 /* @@@BUILDINFO@@@ "Bridge Start Meeting.jsx" 1.0.1.0 4/16/07 @@@START_XML@@@ Start Meeting This script enables users to launch an Acrobat Connect meeting from within Bridge. Meeting eröffnen Démarrer la réunion 会議を開始 Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting Start Meeting */ $.localize = true; if(acrobatconnect == undefined && ($.locale == "ja_JP" || $.locale == "en_US" || $.locale == "fr_FR" || $.locale == "de_DE") ) { var acrobatconnect = {}; if(app.preferences.acrobatconnect_meetingURL == undefined) app.preferences.acrobatconnect_meetingURL = ""; if(app.preferences.acrobatconnect_login == undefined) app.preferences.acrobatconnect_login = ""; if(app.preferences.acrobatconnect_rememberBox == undefined) app.preferences.acrobatconnect_rememberBox= false; if(app.preferences.acrobatconnect_password == undefined ) app.preferences.acrobatconnect_password = ""; // Tells us where this script is running from acrobatconnect.installFolder = "/Bridge%20CS3%20Extensions/Bridge%20Start%20Meeting"; acrobatconnect.getScriptFolder = function() { return "file://" + Folder.commonFiles + "/Adobe" + acrobatconnect.installFolder ; } acrobatconnect.eventHandlers = function (event) { if( event.object.constructor.name == "Document" ) { if( event.type == "create" ){ acrobatconnect.attachJSCallbacks(); } } else if (event.location == "prefs") { if(event.type == "create") { acrobatconnect.doPrefs(event.object); } else if (event.type == "ok" ) { acrobatconnect.savePrefs(); } } } acrobatconnect.attachJSCallbacks = function() { if( !app.document.jsFuncs ) { app.document.jsFuncs = { saveLoginInfo: function(meetingURL, login, password, remember){acrobatconnect.saveLoginInfo(meetingURL, login, password, remember)}, openURL: function(url){ acrobatconnect.openNewDefaultBrowser(url) } , openPrefsES: function() { app.scheduleTask("app.document.chooseMenuItem('Prefs');", 500, false); }, getLocaleES: function() { return $.locale } }; } } // Find localized files acrobatconnect.beginLocalize = function() { acrobatconnect.oldZStringPath = app.zStringPathSpecifier; app.zStringPathSpecifier = acrobatconnect.getScriptFolder() + "/Resources/Language/"+ $.locale + "/locale.dat" ; } acrobatconnect.endLocalize = function() { app.zStringPathSpecifier = acrobatconnect.oldZStringPath; } acrobatconnect.localize = function( str ) { acrobatconnect.beginLocalize(); var result = localize( str ); acrobatconnect.endLocalize(); return result; } acrobatconnect.DemandLoadJSXTable=[ /* 00 */ { n:"-Unused slot-", e:false }, /* 01 */ { n:"TEA", e:false }, /* 02 */ { n:"Net", e:false }, /* 03 */ { n:"ContextMenu", e:false }, /* 04 */ { n:"Preferences", e:false }, /* 05 */ { n:"MeetingFav", e:false }, /* 06 */ { n:"MenuItem", e:false }, /* 07 */ { n:"URLHandler", e:false } ]; acrobatconnect.demandJsxLoading = function( id ) { var bRet=false; var js=""; if( ( id > 0 )&&( id < acrobatconnect.DemandLoadJSXTable.length ) ) { if( acrobatconnect.DemandLoadJSXTable[id].e ) { return true; } //$.write("script folder:" + acrobatconnect.getScriptFolder() ); var fs = new File( acrobatconnect.getScriptFolder() + "/Resources/Scripts/" + acrobatconnect.DemandLoadJSXTable[id].n + ".jsx" ); if( fs != undefined ) { if( fs.exists && !acrobatconnect.DemandLoadJSXTable[id].e) { fs.open(); js = fs.read(); fs.close(); try { eval(js); } catch(e) { // this is to catch .jsx error Window.alert("failed to eval jsx" + acrobatconnect.DemandLoadJSXTable[id].n); delete fs; return false; } acrobatconnect.DemandLoadJSXTable[id].e = true; bRet = true; } delete fs; } if( ! bRet ) { Window.alert("failed to load jsx" + acrobatconnect.DemandLoadJSXTable[id].n); } } return bRet; } acrobatconnect.openNewDefaultBrowser = function(url) { app.openUrl( url); } acrobatconnect.saveLoginInfo = function(meetingURL, login, password, remember) { //$.write("saveLoginInfo: meetingURL:" + meetingURL + " login:" + login + " password:" + password + " remember:" + remember); app.preferences.acrobatconnect_prefsSaved = true; app.preferences.acrobatconnect_meetingURL = meetingURL; app.preferences.acrobatconnect_login = login; var cipherText = acrobatconnect.tea.TEAencrypt(password, login); app.preferences.acrobatconnect_password = cipherText; app.preferences.acrobatconnect_rememberBox = remember; //Update url params for meeting favorite var theFile = File(acrobatconnect.flexURL()); acrobatconnect.startMeeting.displayPath = theFile ; } for(var itr = 1 ; itr < acrobatconnect.DemandLoadJSXTable.length; ++itr) { acrobatconnect.demandJsxLoading(itr); } acrobatconnect.rightClickHandler( true ); acrobatconnect.showMenuItem( true ); acrobatconnect.makeFavorite( true ); //Handler for generating preferences panel //Handler for adobebridge:acrobatconnect: requests if(app != undefined) { if(app.eventHandlers != undefined) { app.eventHandlers.push( { handler: acrobatconnect.eventHandlers } ); } if(app.registerLinkHandler != undefined) { app.registerLinkHandler( "acrobatconnect", acrobatconnect.connectLinkHandler ); } } }