Skip to main content
bagonterman
Inspiring
April 19, 2013
Question

Check if Web Access library is loaded.

  • April 19, 2013
  • 3 replies
  • 4095 views

I am trying to connect and write to a web app. I am wondering how to check if I loaded this correctly. I am using osx.

This topic has been closed for replies.

3 replies

Deepak_Gupta1
Community Manager
Community Manager
October 18, 2017

Hi All,

We have released a new version of Adobe Bridge (CC 2018) on 18 Oct 2017. The new version build number is 8.0.0.262. This version is available to install via Adobe Creative Cloud application.

This Bridge update contains the fix for WebAccessLib issue, and other new features.

You may need to update the Creative Cloud application and restart your computer to see the updated installer.

Thanks,

Deepak Gupta

April 29, 2013

This may help.

// Load the webaccess library

    if( webaccesslib == undefined )

    {

        if( Folder.fs == "Windows" ) {

            var pathToLib = Folder.startup.fsName + "/webaccesslib.dll";

        } else {

            var pathToLib = Folder.startup.fsName + "/webaccesslib.bundle";

            // verify that the path is valid

        }

        var libfile = new File( pathToLib );

        var webaccesslib = new ExternalObject("lib:" + pathToLib );

    }

    $.writeln("Loaded webaccess library...");

bagonterman
Inspiring
April 29, 2013

I used that and it says

    var webaccesslib = new ExternalObject("lib:" + pathToLib );

does not exist.

i don't think i have this file. Any idea where i might be able to download it?

bagonterman
Inspiring
April 29, 2013

/Applications/Utilities/Adobe Utilities-CS5.localized/ExtendScript Toolkit CS5/ExtendScript Toolkit.app/Contents/MacOS/webaccesslib.bundle this is where it takes me. But there is no webaccesslib.bundle there.

Inspiring
April 20, 2013

What are you actually trying to check…? That the external library loaded OK or that the mac is infact connected to the web…? I suppose you could put the loading inside a try/catch… You could perform a get or put to test it… Or you could use the app.system(); method and test connection status…

#target bridge

loadExternalObject();

function loadExternalObject() {

     if ( !ExternalObject.webaccesslib ) {

 

          try {

 

               ExternalObject.webaccesslib = new ExternalObject( 'lib:webaccesslib' );

 

               return true;

               } catch(e) { return false; };

 

     };

};

bagonterman
Inspiring
April 24, 2013

I am getting a result of undefined when I run this in sdk. I am just wondering if I have this lib.

bagonterman
Inspiring
April 24, 2013

Should I be able to find an actual file called webaccesslib.bundle. Because I can not find it anywhere. So if I don't have it how do I get it?