Stone Design Forums

Discussion for all things pertaining to Stone Design software
It is currently Fri May 17, 2013 11:01 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: eXportinator
PostPosted: Tue Jan 10, 2006 10:16 am 
Offline
User avatar

Joined: Mon Mar 15, 2004 12:06 pm
Posts: 106
Location: Kansas City
I dig 10.4 and iMaginator...

Rather than manually organizing my iMaginator packages in folders I just keep a saved search of iMaginator packages. However, sometimes I need a JPG, PNG, or TIFF file - actually several files.

And rather then manually open each iMaginator package and Save As...I came up with this Applescript Droplet that opens iMaginator packages and exports a JPG, PNG, or TIFF file to a chosen folder.

I just put it in my Finder Toolbar and drag iMaginator packages from the Saved Search onto it - and then I have my desired format files for internet posting or whatever.

If you're curious or want to improve it, here's the code for the Droplet:
Code:
on run
   display dialog "Drop iMaginator packages on this droplet to export them to other formats." giving up after 5
end run

on open (the_files)
   tell application "Finder"
      activate
      
      if the_files ? "" then
         set the_files_count to count of the_files
         
         set this_file to 1
         
         set export_format to button returned of (display dialog "Please choose format." buttons {"TIFF", "JPG", "PNG"} default button "PNG")
         
         set folder_path to choose folder with prompt "Choose a folder"
         
         repeat until this_file > the_files_count
            set this_imaj_package to (item this_file of the_files)
            
            set the_file_kind to kind of this_imaj_package
            
            if the_file_kind = "Imaginator Package" then
               
               tell application "iMaginator"
                  open this_imaj_package
                  set doc_name to name of document 1
                  
                  set char_count to count of doc_name
                  
                  set AppleScript's text item delimiters to "."
                  
                  set imaj_checklist to every text item of doc_name
                  
                  if the last item of imaj_checklist is "imaj" then
                     
                     set imaj_checklist_count to count of imaj_checklist
                     set new_name_list to items 1 through (imaj_checklist_count - 1) of imaj_checklist
                     set AppleScript's text item delimiters to ""
                     set new_name to new_name_list as text
                     
                  end if
                  
                  if export_format = "JPG" then set des_file to ((folder_path & new_name & ".jpg") as text)
                  if export_format = "PNG" then set des_file to ((folder_path & new_name & ".png") as text)
                  if export_format = "TIFF" then set des_file to ((folder_path & new_name & ".tiff") as text)
                  
                  export (document 1) in des_file
                  close (document 1)
               end tell
            end if
            
            set this_file to this_file + 1
         end repeat
         
      end if
      
      activate
      display dialog "Finished" giving up after 3
      
   end tell
end open


rock on!
daddydoodaa


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 11:45 am 
Offline

Joined: Fri Apr 02, 2004 12:13 pm
Posts: 558
Location: Kent, England.
Very interesting.
iMaginator is a fantastic image editor, but it is a pain that iPhoto, iView Media Pro and Photo Mechanic do not support the .imaj package. Spotlight is a great help but as I get more iMaginator packages keeping track becomes more difficult especially when I have several versions of the same image. Could the script above help by adding the Filename.imaj to the image exported so that when added to say iPhoto there would be a way of finding the Package that made it. Maybe the Filename could be added to the metadata.

Personally I find that iPhoto slows down with large libraries so I now use iPhoto Buddy and keep my photo libraries smaller. I would be very interested to hear other peoples thoughts and ideas.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 1:55 pm 
Offline

Joined: Fri Apr 02, 2004 12:13 pm
Posts: 558
Location: Kent, England.
New version of iPhoto released today. Looks like it can handle a library of 250 000 photos, wow. Now if some cleaver sole can just make a plug in so it supports iMaginator files.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group