Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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; };
};
};
Copy link to clipboard
Copied
I am getting a result of undefined when I run this in sdk. I am just wondering if I have this lib.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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...");
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
/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.
Copy link to clipboard
Copied
Run this code to open the folder where the file should exist....
#target bridge
Folder.appPackage.execute();
Copy link to clipboard
Copied
What do I do if i do not have this file?
Copy link to clipboard
Copied
It means you have a bad install, there could be other errrors as well. The fix would be uninstall Photoshop and re-install.
Copy link to clipboard
Copied
If you is on the mac then look inside the App Package… I can see it in mine…
Copy link to clipboard
Copied
Paul… if hes using a mac I don't think that will work the app is a package bundle…
Copy link to clipboard
Copied
Ah, strange things those burgers Mark, I'm used to a computer
Copy link to clipboard
Copied
Paul on a PC is an app a regular folder…?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
OK found it thanks. /Applications/Adobe Bridge CS5/Adobe Bridge CS5.app/Contents/MacOS/webaccesslib.bundle
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Curses! It doesn't work in Bridge 2017!
Copy link to clipboard
Copied
Bumping this thread to see if someone has an idea about Silly-V's remark?
Copy link to clipboard
Copied
Yes its a bug in 2017, you get IO error when trying to access the dll. (windows)
Copy link to clipboard
Copied
Ok, did you report the bug on feddback.photoshop.com, or from another way?
Copy link to clipboard
Copied
No I haven't reported it, but I think I saw it on https://feedback.photoshop.com/photoshop_family as well.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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