do shell script "sips --cropToHeightWidth 930 1780 /Users/snaplash/Desktop/SNAPLASH_DO_NOT_DELETE/CONTENT_DO_NOT_DELETE/IMLS98662876/IMLS98662876_MARKER_18.jpg -o /Users/snaplash/Desktop/SNAPLASH_DO_NOT_DELETE/POST_PROCESSING_DO_NOT_DELETE/IMLS98662876/Branded/IMLS98662876_BRANDED_AERIAL_18.jpg"
Am I doing anything wrong here with the SIPS command? It worked before the Hi Sierra upgrade.
Also SMB connections between Mac and PC’s in an after effects render farm stopped working and Finder keeps crashing and wont relaunch without restart. Apple Support suggested CIFS instead of SMB… Does anyone else have issues similar?
Use –out, not -o. The latter’s equivalent to –optimizeColorForSharing.
It’s also a good idea to use the quoted forms of paths in shell scripts, even when they don’t contain spaces or apostrophes. At the very least, it’s one thing less to check when things don’t work.
set rootPath to (POSIX path of (path to desktop)) & "SNAPLASH_DO_NOT_DELETE/" -- Assuming the script's running in user "snaplash".
do shell script "sips --cropToHeightWidth 930 1780 " & quoted form of (rootPath & "CONTENT_DO_NOT_DELETE/IMLS98662876/IMLS98662876_MARKER_18.jpg") & " --out " & quoted form of (rootPath & "POST_PROCESSING_DO_NOT_DELETE/IMLS98662876/Branded/IMLS98662876_BRANDED_AERIAL_18.jpg")