![]() My recollection is that it basically worked, but the user experience was a bit clunky because of the modal behavior and because a Console window appears on the screen as the commands run, and I had to quit the Uploadr manually after upload to move on. I know that I've tried before to run Flickr Uploadr windows this way from Bridge, but it was months ago, and I don't recall all the details. bat file and then sending the path to the. In those cases I've found that witting out the command to a temporary. Finally, when I've used app.system() on windows in the past, sometimes a command that seems to work just fine from the windows Console doesn't seem to do anything via app.system(). Also note that app.system() will block your script until the command returns. Note that you usually have to quote paths to files for this to work all the time. Var command = "\"" + uploadr.fsName + "\" \"" + fileToUpload.fsName + "\"" Make a file Object using the known path to the uploadr I believe that the Windows Flickr Uploadr has a command line interface, so you might try something like this. It's possible (on both Mac and Windows), for example, to run the DNG Converter from Bridge this way, and this is how the ExportToJPEG's "Send To Flickr Uploadr-Mac.jsx" sample script runs some AppleScript that tells the Mac Flickr Uploadr to open files. If the third-party software has a command line interface, then you can try using app.system() to issue the commands. ![]() One workaround you can try is the command line. Off the top of my head I'm not sure if openWith ends up sending a BridgeTalk message or some flavor or operating system or message or event (or both), but if you can get the 3rd Party application to open the file using the Bridge UI's File > Open With menu item, then I'd expect scripting's openWith to work as well. Not all 3rd party software will respond to the commands Bridge sends it when you do openWith. If openWith() is indeed the wrong method to use, what is correct way, or is this even possible? Thanks.here's what i've got so far.// path to flickr uploaderflickrPath = "/C/Program Files/Flickr Uploadr/Flickr Uploadr.exe" // only have 1 instance of eachfunction checkEl(w) ![]() But the documentation on openWith() is a bit sparse. I've tried using openWith(), but i don't think that it does what I want it to do. I'm trying to add a "Send to Flickr Uploadr" context menu to bridge, but I've hit a snag in getting the files to the Flickr Uploader program.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |