That's a great idea. A droplet never even a occurred to me but it is an excellent solution. Thank you for taking the time to respond.
Don Sent from my iPhone On Aug 11, 2011, at 11:19 PM, Christopher Stone <[email protected]> wrote: > On Aug 11, 2011, at 08:26, Don Southard wrote: >> Not as quick drag-n-drop but a solution none the less. Any other thoughts? > ______________________________________________________________________ > > Hey Don, > > If you really want drag and drop you can create a script droplet and put it > in the Dock, on your Desktop, or in the Finder Toolbar. > > ------------------------------------------------------------------------------------------------ > on run > beep > display dialog "This is a drag & drop application!" > end run > > on open (fileList) > try > > if length of fileList > 1 then > error "Only One Image Allowed!" > else > set imageFilePath to quoted form of (POSIX path of (item 1 of fileList)) > set exifData to do shell script "exiftool " & imageFilePath > > tell application "BBEdit" > activate > tell front text window > set text of selection to exifData > end tell > end tell > > end if > > on error errMsg number errNum > set sep to "==============================" > set e to sep & return & "Error: " & errMsg & return & sep & return ¬ > & "Error Number: " & errNum & return & sep > beep > display dialog e > end try > end open > ------------------------------------------------------------------------------------------------ > > * ExifTool is a command-line executable: > http://www.sno.phy.queensu.ca/~phil/exiftool/ > > You can of course allow more than one image to be dragged. > > I have not done any file-type checking in this script. > > You could also change the run handler to allow clicking on the script in the > toolbar to act on the selected items in the Finder. > > There are many available options. > > -- > Best Regards, > Chris > > -- > You received this message because you are subscribed to the > "BBEdit Talk" discussion group on Google Groups. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > <http://groups.google.com/group/bbedit?hl=en> > If you have a feature request or would like to report a problem, > please email "[email protected]" rather than posting to the group. > Follow @bbedit on Twitter: <http://www.twitter.com/bbedit> -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
