Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Check if Web Access library is loaded.

Engaged ,
Apr 19, 2013 Apr 19, 2013

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.

TOPICS
Scripting
4.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Apr 20, 2013 Apr 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; };

 

     };

};

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 24, 2013 Apr 24, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 24, 2013 Apr 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Apr 26, 2013 Apr 26, 2013

This may help… I thought lib:blahblah was a short cut to the system library but it turns out its not…

#target bridge

ExternalObject.log = true; // Write to console searches

   

alert( decodeURI( ExternalObject.search( 'lib:webaccesslib' ) ) ); // This should be the path if found…?

ExternalObject.log = false; // Turn it off

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 29, 2013 Apr 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...");

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 29, 2013 Apr 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 29, 2013 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Apr 29, 2013 Apr 29, 2013

Run this code to open the folder where the file should exist....

#target bridge

Folder.appPackage.execute();

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 29, 2013 Apr 29, 2013

What do I do if i do not have this file?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Apr 29, 2013 Apr 29, 2013

It means you have a bad install, there could be other errrors as well. The fix would be uninstall Photoshop and re-install.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Apr 29, 2013 Apr 29, 2013

If you is on the mac then look inside the App Package… I can see it in mine…

Screen shot 2013-04-29 at 20.25.43.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Apr 29, 2013 Apr 29, 2013

Paul… if hes using a mac I don't think that will work the app is a package bundle…

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Apr 29, 2013 Apr 29, 2013

Ah, strange things those burgers Mark, I'm used to a computer

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Apr 29, 2013 Apr 29, 2013

Paul on a PC is an app a regular folder…?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Apr 29, 2013 Apr 29, 2013

No an app doesn't exists, it's just another name for a program.

Folder.appPackage.execute(); will open the folder where Bridge is installed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 01, 2013 May 01, 2013

OK found it thanks. /Applications/Adobe Bridge CS5/Adobe Bridge CS5.app/Contents/MacOS/webaccesslib.bundle

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 01, 2013 May 01, 2013

If I target Bridge and use the above path it loads the library correctly. Thank you for all of your help. The link to the webaccesslib.bundle is very unclear in adobe's documentation.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Dec 02, 2016 Dec 02, 2016

Curses! It doesn't work in Bridge 2017!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2017 Aug 23, 2017

Bumping this thread to see if someone has an idea about Silly-V's remark?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Aug 23, 2017 Aug 23, 2017

Yes its a bug in 2017, you get IO error when trying to access the dll. (windows)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2017 Aug 23, 2017

Ok, did you report the bug on feddback.photoshop.com, or from another way?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Aug 23, 2017 Aug 23, 2017

No I haven't reported it, but I think I saw it on https://feedback.photoshop.com/photoshop_family as well.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Aug 30, 2017 Aug 30, 2017

I was contacted by people on the Bridge team who said this is fixed in next version and is now available on the Bridge Pre-release edition. So help is on the way!

This was a fairly ambiguous message, so I'm just going to paste his email here to bolster our victorious sentiment:

I am Deepak Gupta, from Adobe Bridge team. This is regarding Adobe Bridge forum issue https://forums.adobe.com/thread/2238049

Bridge team has been working on to bring in new features and fixing issues for future releases of Bridge.

We have recently fixed the webaccess lib related issues and Bridge builds will be available on Adobe pre-release program in couple of days. Would you like to join the Adobe Bridge pre-release program and try out the new builds with fixes and other new features?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Oct 18, 2017 Oct 18, 2017
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines