Skip to main content
Inspiring
January 17, 2021
Question

webaccesslib: No longer available in version 11 or higher?

  • January 17, 2021
  • 4 replies
  • 2640 views

Am I correct in thinking that the webaccesslib is no longer available starting in version 11? The .dll file is not included in the Bridge folder as in previous versions (up to version 10). When I copy it to the correct folder I get an IO error. I'm gussing that Bridge no longer supports 32bit dll files as ExternalObject loadable libraries. Is this correct?

 

Is there an alternative to this to support ftp/sftp via javascripting?

This topic has been closed for replies.

4 replies

jugenjuryAuthor
Inspiring
February 12, 2022

I know this thread is old, but I think more needs to be said here. I've delayed updating my Bridge simply because the newer versions do not support the webaccesslib. So there goes that whole "[...]support for Webaccesslib is removed in the latest versions of Bridge as it was not being used in any Bridge User workflow[...]" idea out the window. I see so many posts on so many other forums asking the same question and the people getting upset when the find out that it's no longer supported.

 

Adobe doesn't want to continue support for webaccesslib. Fine. Here's a proposal. Since they are no longer developing it, then they shouldn't have any issues with the Copyright for it. Make the code for the dll public and allow the community itself to update and maintain it. In my experience with other Adobe users, I've come across a number of extremely intelligent people who who are familiar with various computer languages and coding and are more than willing to share with the community. Myself included.

I honestly don't understand where the issue is with this. Also, I'm very skeptical about the reason given that it wasn't being used in any workflows. How did you determine that? Whatever method you used, it was obviously flawed.

 

Yes, I realize there are other ways to accomplish the tasks available in webaccesslib but in my opinion, those are basically klunky workarounds when there was a direct way to accomplish the tasks. 

Legend
February 13, 2022

That ship has sailed, been decommissioned, and sunk to become a reef. You can get similar functionality by calling cURL or similar (Cyberduck has a command line component, for example) if you have to access resources from a remote computer.

Kukurykus
Legend
February 13, 2022

For now it's left at bottom, but we can draw attention by talking about it 🙂

Community Manager
January 29, 2021

Yes, support for Webaccesslib is removed in the latest versions of Bridge as it was not being used in any Bridge User workflow. We would request you to use other libraries (like libCurl, OpenSSL which provide similar functionality) available out there, which are better supported with regular vulnerability fixes.

Thanks,
Bridge Team

Legend
February 1, 2021

It would be awfully nice if the developer team wrote a connector to things like cURL and ImageMagik and Lightroom so us amateur coders could more easily extend Bridge. Just saying.

gregreser
Legend
May 4, 2021

Agreed. I am lost on how to use libCurl or openSSL with a Bridge script.

 

And to the Bridge Team: I wasn't just playing around with Webaccesslib, I now have users who are angry that my script is broken.

Legend
January 18, 2021

You can call cURL via the command line, I had a Powershell script at one point that called the Windows command line to upload files via cURL. It was a major PITA but it worked. My Utility Script Pack for Bridge uses a similar method to call the Adobe DNG Converter via Powershell so on Windows, you don't see the command window. You can also call Powershell or Automator (on macOS) to use the built-in OS web access features.

Adobe Scripts

Kukurykus
Legend
January 18, 2021

With webaccesslib you could dowanload files from server (what is possible in Photoshop without it), but you could also save file to server (that wasn't possible by only Photoshop with new Socket()). Can be that second done with cURL or Powershell without user beeing asked by Windows dialog to accept such task?

Legend
January 20, 2021

Yes, anything that can be called from the command line will work. The only way i know of to avoid the command window showing is to use Windows Scripting Host and Powershell to run a command line script. Be advised, its a major PITA to get the syntax correct.

Here is a sample powershell script to call cURL

 

#Notes: File paths and directories should be edited to suit. Script will fail around 1400 files in a folder, keep it under that.
#If a different ftp account is needed, add a new item to the array with login:pass
#--ssl -k not needed for regular ftp account

#edit these variables
$curlpath = "~\Downloads\curl\bin\curl.exe"
$MasterDir = "~\Pictures\Product Images\"
$ftpDir = "ftp://ftp.server.com/"
#subdirectories, logins, file types - (local folder, remote folder, file extension, file type)
$DirArray = ("catalogs", "catalogs/", ".pdf", "PDF"), ("1000px", "product_photos/1000_pixel/", ".jpg", "JPEG"),`
("1600px", "product_photos/1600_pixel/", ".jpg", "JPEG")
$ArrayCounter = 0
#add item to array for account with different password
$pass = "name:pass"

#finished_photos spreadsheet
$ftp = $ftpDir+"dir/"
$filelist = "finished_photos.xlsx"
$filelist2 = "finished_photos-ftp.xlsx"
cd ~\Desktop\
Start-Process -FilePath $curlpath -ArgumentList "-T $filelist $ftp -u $pass --ssl -k"
Start-Process -FilePath $curlpath -ArgumentList "-T $filelist2 $ftp -u $pass --ssl -k"

#repeat until end of DirArray
while ($ArrayCounter -lt $DirArray.length)
{
#get parameters for next directory
$Dir = $MasterDir+$DirArray[$ArrayCounter][0]
$RemoteDir = $DirArray[$ArrayCounter][1]
$searchext = $DirArray[$ArrayCounter][2]
$filetype = $DirArray[$ArrayCounter][3]
#if needed for different account
#$pass = $DirArray[$ArrayCounter][4]

#get file listing filtered by $searchext and convert to globbed input for curl
$filelist = dir $Dir ("*"+$searchext)
$filelist = $filelist -replace($searchext,',') -replace ($filetype,"")
$filelist = "{"+$filelist+"}"
$filelist = $filelist -replace(',}',('}'+$searchext)) -replace (' ','')

#launch curl if list is not empty, upload from local directory
if ($filelist -ne "{}")
{
#specify ftp server directory
$ftp = $ftpDir+$RemoteDir
#change local directory
cd $Dir
Start-Process -FilePath $curlpath -ArgumentList "-T $filelist $ftp -u $pass --ssl -k"
}
$ArrayCounter = $ArrayCounter+1
}

jbm007
Community Expert
Community Expert
January 18, 2021

Its gone.

Kukurykus
Legend
January 18, 2021

Why so useful thing was removed?