stay_open not working with IF

Started by QGtKMlLz, August 29, 2023, 09:21:44 PM

Previous topic - Next topic

QGtKMlLz

I am not understanding how stay_open works. 
I run:
exiftool.exe -stay_open True -@ - in powershell console, where I proceed to enter the arguments below line by line, yet when I execute I get "error: file not found - $AppleStoreAccount"

-common_args
-if
defined
$AppleStoreAccount
T:\Sonatas\23 Piano Sonata No. 10 in G, Op. 14,.m4a
-execute

Error: File not found - $Rating
======== T:\Sonatas\23 Piano Sonata No. 10 in G, Op. 14,.m4a
Warning: [minor] Patched incorrect time zero for QuickTime date/time tag - T:\Sonatas\23 Piano Sonata No. 10 in G, Op. 14,.m4a
    1 image files read
    1 files could not be read

Thank You

StarGeek

You're splitting the -if condition.  The -if is one parameter, and the condition is another.  It doesn't matter how long it is, it's just one parameter.

-if
defined $AppleStoreAccount
"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

QGtKMlLz

I kept reading old posts here that there couldn't be any spaces.

That Worked Thanks!