Invoke ExitTool using JavaScript

Advanced Renamer forum
#1 : 19/08-14 22:18
Skip Bulkley
Skip Bulkley
Posts: 1
Is it possible? Can somebody provide a syntax example? Thanks!


19/08-14 22:18
#2 : 20/08-14 08:36
Stefan
Stefan
Posts: 274
Reply to #1:

This is not possible.

It should be possible with JS and FSO, but IIRC Kim has limited the JS method
to work inside of AR only and not to do things outside, as e.g. launching a thired-party app.
Search the forum for related post of Kim.

 

 

 



20/08-14 08:36
#3 : 23/09-14 23:25
vletroye
vletroye
Posts: 7
Reply to #2:

Here is how I get values from ExifTool from a script:

var w = item.exifToolValue('ImageWidth');
var h = item.exifToolValue('ImageHeight');

Isn't what you are asking for ?


23/09-14 23:25
#4 : 24/09-14 08:18
Stefan
Stefan
Posts: 274
Reply to #3:
 
Ahh, you are right: support for exiftool is build-in.

FROM:
My-Picture.jpg

TO:
My-Picture_(672x512).jpg

USE:
JavaScript Method (http://www.advancedrenamer.com/user_guide/metho d_script)


-----8<----------------------- code:

var w = item.exifToolValue('ImageWidth');
var h = item.exifToolValue('ImageHeight');
return item.newBasename   +   '_('   +   w   +   'x'   +   h   +   ')'   ;

/ code: ------------------>8---------




THX :D


24/09-14 08:18