Topic: Getting information from one or more files: is it possible?

Greetings,

is it possibile to have Dropzone show me the information of one or more file when I drag and drop into the area?
Is it possible to build an action for that? How?

Thank you.

Re: Getting information from one or more files: is it possible?

Hi there,

Which file information are you wanting to see?

John

Re: Getting information from one or more files: is it possible?

John wrote:

Hi there,

Which file information are you wanting to see?

John

Hi John.

The usual information, when you go on a file and right click, and then you click the get information option.

As for my use case, I usually check the size of the file (how many Mb...), if it's an image I also check the dimensions, if it's a video I check the duration...

Sometimes I need the whole data.

Re: Getting information from one or more files: is it possible?

Yep, add a 'Run AppleScript' action as shown below:

https://aptonic123.s3.amazonaws.com/step1.png

And set it up as shown below:

https://aptonic123.s3.amazonaws.com/step2.png

AppleScript code to copy and paste into the 'Configure AppleScript' section as shown in the screenshot above:

repeat with i from 1 to number of items in draggedFiles
    set draggedFile to item i of draggedFiles
    set aFile to draggedFile as alias
    tell application "Finder" to open information window of aFile
end repeat

Re: Getting information from one or more files: is it possible?

John wrote:

Yep, add a 'Run AppleScript' action as shown below:

https://aptonic123.s3.amazonaws.com/step1.png

And set it up as shown below:

https://aptonic123.s3.amazonaws.com/step2.png

AppleScript code to copy and paste into the 'Configure AppleScript' section as shown in the screenshot above:

repeat with i from 1 to number of items in draggedFiles
    set draggedFile to item i of draggedFiles
    set aFile to draggedFile as alias
    tell application "Finder" to open information window of aFile
end repeat

It works.
Thank you very much!