Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > applescript

applescript
Thread Tools
Fresh-Faced Recruit
Join Date: Dec 2007
Status: Offline
Reply With Quote
Dec 31, 2007, 01:40 PM
 
I'm new to applescript and I need some help

what I plan to do is make an app. for image conversion.

steps the app will take:

- file will be dropped on script
- app. will take file (with variable name) and send it to the terminal
- a conversion application will be launched by the terminal imputing
the file name of the file dropped on the script
- this will run and output a file to the /user dir
- the script will now move that file back to the dir where the script
is located

the command I use in the terminal now to covert an image
"mattphilip$ /Applications/Autodesk/maya8.5/Maya.app/Contents/bin/imf_copy -v -p -L /giantskined1001+R32.tif giantnew.map"

the image converter is packaged with a program called maya and is
called IMF_copy

(giantskined1001+R32.tif giantnew.map) are just names of images this would be based on the file dropped on the script

any help or a starting point would be awesome

thanks

Matt
(Last edited by mphilip; Dec 31, 2007 at 02:03 PM. )
     
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status: Offline
Reply With Quote
Jan 6, 2008, 11:28 PM
 
I'm not all up to date on my Applescript, but I think you'd do something like this:

// item is the file dropped onto the app.

on open item
do shell script /Applications/Autodesk/maya8.5/Maya.app/Contents/bin/imf_copy -v -p -L item
end open

I think that'd work anyway, you'll probably have to mess around with it a bit, and maybe do some work on the name/file output.
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:36 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2