Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 25, 2009, 12:03 PM   #1
Macfotoman
macrumors newbie
 
Join Date: Jun 2009
applescript Exiftool Help

I am trying to write an AppleScript to make some changes to EXIF data using Phil Harvey's EXIFTool.

I am an rather new to AppleScript.
My goal is a script that will read the Date/Time Original Tag, subtract 1 hour from the time, then write that data to the GPSTimeStamp tag

Here is the script I am having problems with

set theFolder to choose folder with prompt "choose target folder for GPS Modification"
local the_file, File_Name, the_cmd
set the_file to POSIX path of theFolder
open
set the_file to choose file
set the_file to POSIX path of the_file
set the_cmd to "exiftool -GPSTimeStamp='2009:05:15 16:02:07Z' GR04944.NEF"
do shell script the_cmd

I get file not found error

if I set the_cmd just to "exiftool" I get the exiftool info docs

I know the exiftool -GPSTimeStamp='2009:05:15 16:02:07Z' GR04944.NEF
is correct as if I issue it from within Terminal I get "1 image file updated"

any ideas?
Macfotoman is offline   0 Reply With Quote
Old Jul 1, 2009, 06:30 AM   #2
mysterytramp
macrumors 65816
 
mysterytramp's Avatar
 
Join Date: Jul 2008
Location: Maryland
I don't have exiftool, so I can't test your script but I think your error is the blank "open" line. From what you've provided, I don't think it's needed. (In fact, the first four lines might not be needed.)

TIP: You can gang the Posix path line with the choose file line:

set the_file to POSIX Path of (choose file)

mt
__________________
What looks large from a distance, close up ain't never that big.
mysterytramp is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Handling Duplicate AppleScripts the Otter Mac Programming 1 Dec 22, 2010 05:53 AM
Applescript NOOB Revolume Mac Programming 2 Dec 1, 2010 08:06 AM
help with excel for mac 2008 damiang72 Mac Applications and Mac App Store 0 Nov 14, 2010 06:19 AM
applescript plugin help rowanhall OS X 1 May 3, 2005 01:35 PM
AppleScript gurus, help!! :-) WM. Mac Applications and Mac App Store 12 Jun 2, 2004 01:08 AM


All times are GMT -5. The time now is 04:00 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC