Display of File Size in Metadata Tool *Solved*

Discussions, questions, comments and suggestions regarding Capture One PRO, Capture One PRO For Sony / Fujifilm, Capture One DB and Capture One Express For Sony / For Fujifilm 12.x for Mac

Display of File Size in Metadata Tool *Solved*

Postby ouwensi » Sun Oct 20, 2019 6:52 pm

Hi,

is there a possibility that C1 shows the information about the size of the picture file? In the metadata tool or elsewhere? Must I to go every time to the finder to get this information?

Thanks,
Tim
Last edited by ouwensi on Sun Oct 20, 2019 8:58 pm, edited 1 time in total.
ouwensi
 
Posts: 4
Joined: Sat May 04, 2019 9:00 pm

Re: Display of File Size in Metadata Tool

Postby Eric Nepean » Sun Oct 20, 2019 8:07 pm

Neither the Metadata Tool, nor any of the other tools, will show this inforrmation.

Here is an Applescript that will do the job. Capture One has the information, Finder isn't even needed.

Using Apple's Script Editor application, save this Applescript in the /Users/YourUserID/Library/Scripts/Capture One Scripts folder as an application, not as a compiled script.
Perhaps use the name GetFileInfo, then the file name will be GetFileInfo.app

In the Capture One menu bar, click on Scripts/Update Scripts, this will cause the script to be added to Capture One's Scripts menu as GetFileInfo.

Using Capture One select a variant and run this script, you will get the information you seek. If you select mutiple variants it will only returrn the information about the primary variant.

Code: Select all
## Using Capture One select a variant and run this script.
## The script creates a dialog message showing the image files name and path, size in MB and dimensions

use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
tell application "Capture One 12" to set {theSize, thePath, theDimensions} to get primary variant's parent image's {file size, path, dimensions}
set theSizeMB to roundDecimals((theSize / 1000000), 2)
display alert "File path: " & thePath & return & "Size: " & theSizeMB & "MB" & return & "Dimensions: " & (theDimensions's item 1) & "x" & (theDimensions's item 2) & " pixels)"

on roundDecimals(n, numDecimals)
   ## Nigel Garvey, Macscripter
   set x to 10 ^ numDecimals
   tell n * x to return (it div 0.5 - it div 1) / x
end roundDecimals
Eric Nepean
 
Posts: 608
Joined: Sat Oct 25, 2014 8:02 am
Location: Ottawa

Re: Display of File Size in Metadata Tool

Postby ouwensi » Sun Oct 20, 2019 8:57 pm

Wow!!!
:shock:
Incredible. It works. Thank you so much!!!
Tim
ouwensi
 
Posts: 4
Joined: Sat May 04, 2019 9:00 pm


Return to Capture One 12.x Software for Mac



Who is online

Users browsing this forum: No registered users and 4 guests