Main Menu

Command trouble -

Started by melzmane, June 10, 2025, 03:23:13 AM

Previous topic - Next topic

melzmane

Hi,

I am very new with all this,

I have downloaded the macros package, it kept giving me the warning of may contain software, it only gave me the option to press done or move to Bin. I pressed done and it has downloaded. I also went to privacy & security settings and have allowed access to my files and folders by the terminal.

I am having trouble with the commands I would like to see the metadata of an image thats all.
I have tried using exiftool and "exiftool" and it comes up with zsh:command not found.
I have also tried the full perl distribution, it worked and it asked me for a password. I only used a password to log in to the computer. I did not make an administration password and since it downloaded I don't think I need to do this.

Am I just getting the commands wrong. I have a Macpro bought last year.
Thanks,
Mel.

greybeard

It seems you missed steps in System Settings => Privacy and Security to over-ride the security warning.

These steps must be done in sequence:
- download the MacOS Package from here: https://exiftool.org/
- double click on the downloaded ExifTool-13.30.pkg
- a pop-up appears showing "ExifTool-13.30.pkg" Not Opened
- click the "Done" button - nothing will happen and the downloaded file remains on your computer

You missed the following =>
- go to System Settings => Privacy and Security
- scroll to the bottom and see the message: "ExifTool-13.30.pkg" was blocked to protect your Mac
- click on the Open Anyway button - when the pop-up shows click on Open Anyway again and enter your password
- now complete the installation dialog (including entering password)

Test that installation is complete by entering : "exiftool -ver" in the terminal and it should respond with "13.30"

This all works for me but as ever you do it at your own risk. I'm not sure why the application isn't notarized which would make these steps unnecessary.

Phil Harvey

Quote from: greybeard on June 10, 2025, 04:18:09 AMThis all works for me but as ever you do it at your own risk. I'm not sure why the application isn't notarized which would make these steps unnecessary.

I've already wasted too much time trying to do this, but so far I have been unable to figure it out.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

melzmane


melzmane

Just one more question.

What do you mean at my own risk? can hackers get in?

Thanks,
Mel.

greybeard

Quote from: Phil Harvey on June 10, 2025, 06:27:12 AM
Quote from: greybeard on June 10, 2025, 04:18:09 AMThis all works for me but as ever you do it at your own risk. I'm not sure why the application isn't notarized which would make these steps unnecessary.

I've already wasted too much time trying to do this, but so far I have been unable to figure it out.

- Phil

Its a bit of a pain to set up but when you've done that once the notarization is trivial - two commands:

- First you sign the package (with your developer ID):

productsign --sign "Developer ID Installer: Phil Harvey (xxxxxxx)" ExifTool-13.30.pkg ExifToolS-13.30.pkg

- Then you send the package to Apple to be notarized:

xcrun notarytool submit "ExifToolS-13.30.pkg" --apple-id "youremail@whatever"  --team-id "xxxxxxxx" --password "xxxxxxxx"  --wait

I've emailed you an example file

greybeard

Quote from: melzmane on June 10, 2025, 09:16:10 AMJust one more question.

What do you mean at my own risk? can hackers get in?

Thanks,
Mel.

Its my usual caveat when describing how to override Apple security - I've never had problems with ExifTool but you always want to be careful where you get your applications

StarGeek

Quote from: melzmane on June 10, 2025, 09:16:10 AMcan hackers get in?

No, not with exiftool. Exiftool has a 22+ year history. It has its own Wikipedia page that doesn't list any reason for it to be dangerous. It doesn't even have the ability to connect or receive data from the Internet, so there's no vector for a hacker to get into your computer through exiftool

But you don't want to use @greybeard's procedure to install programs that don't have such credentials.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

melzmane

Thanks all, for your information.

 :)

Phil Harvey

Hi Greybeard,

Quote from: greybeard on June 10, 2025, 09:28:18 AM
Quote from: Phil Harvey on June 10, 2025, 06:27:12 AMI've already wasted too much time trying to do this, but so far I have been unable to figure it out.

Its a bit of a pain to set up but when you've done that once the notarization is trivial - two commands:

- First you sign the package (with your developer ID):

productsign --sign "Developer ID Installer: Phil Harvey (xxxxxxx)" ExifTool-13.30.pkg ExifToolS-13.30.pkg

- Then you send the package to Apple to be notarized:

xcrun notarytool submit "ExifToolS-13.30.pkg" --apple-id "youremail@whatever"  --team-id "xxxxxxxx" --password "xxxxxxxx"  --wait

I've emailed you an example file

Thanks, but this didn't help much.  I wasted more time trying to obtain the signing certificate required by these commands, but I can't find a way to do this without having a paid Apple Developer account.  I'm not going to pay Apple for the privilege of distributing free software (grrrrr!)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).