Convert file command in Graphic Converter.....help

OK, I'm a software engineer by trade, so I'm sure I'll get the hang of AS, but I have to admit, I'm having problems getting started.
I would like to create a simple drag/drop Applescript that will invoke GraphicConverter and perform a predefined file conversion process. Specifically I want to convert dropped images to the Electric Image "IMAGE" format.
I have looked at all of the sample scripts on numerou sites, and they use the "Save Window" method. I would like to use the "Convert File" method.
Any sample code that may help me with this? I've looked at the AS Dictionary for GC, but I'm not sure where to proceed. Here is the text from the dictionary:
convert file v : convert a file using a batch setting to the destination folder
convert file
using batch file specification : batch settings file
to folder file specification : destination folder
Thanks for any help!
_mike

No error checking is provided.
Only graphic images are assumed to be dragged onto the applet - whose code is provided below.
on open (dragged_Images) -- Handle users action to drag images onto applet.
my handleDragged_Images(draggedImages)
end open
on run {} -- Handle users action to open (launch, run) applet.
say "Drag and drop images onto this applet"
end run
-- Handler (function) to cycle through selected images, saving each image as type 'IMG'..
on handleDragged_Images(localImages)
repeat with i in local_Images -- Cycle through the dragged images.
-- Obtain '.' extension of file.
tell application "Finder" to set tExtension to ((name extension of i) as string)
if (tExtension is "") then -- If no extension exists ...
set file_Name to (i as string) -- Create and set variable 'file_Name' here.
else
-- Create and set variable 'file_Name' here, without existing '.' extension.
if ((i as string) ends with tExtension) then
set {oAStID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "."}
set file_Name to get (text items 1 through -2 of (i as string)) as string
set AppleScript's text item delimiters to oAStID
end if
end if
-- Have 'GraphicConverter' open, save (as IMG file) and close file.
tell application "GraphicConverter"
open i
save window 1 in ((file_Name & ".img")) as IMG
close window 1 without saving
end tell
end repeat
end handleDraggedImages
  Mac OS X (10.4.4)  

Similar Messages

  • I am trying to load new Cd's onto my iTunes in my Mac. But it comes up with cannot convert file? Please can someone help with something that should be so simple.

    I am trying to upload new CD's onto my iTunes account on my Mac but it coming up with cannot convert file.
    "You don't have access for your iTunes media folder or a folder within it. What do I need to do?

    Read the part about changing permissions on the iTunes folder in: https://discussions.apple.com/message/11583914

  • HT2506 How do I change the default image editor from Preview to Graphic Converter?

    How do I change the default image editor from Preview to Graphic Converter?

    I'm assuming you want the default programme to change from Preview to Graphic Converter so that clicking on the file would open Graphic Converter instead of Preview.
    Control click on the file type that you want to open using Graphic Converter. Press Command+I for Get Info. Click on the triangle next to Open With. Select Graphic Converter and Press Change All...

  • I am trying to convert a file from pdf. I can't see it after I hit convert to word and view converted files. How do I know if I have a subscription? Adobe is on my mac dashboard.

    How do I tell if I have already paid for a membership? When I try to convert a pdf file to word, it looks like it is processing the task, but then I can't find the converted file when it says view converted file. Huh? Adobe is on my mac dashboard, I have had an account but can't see the results . . . thanks.

    Hi subscription question,
    I've checked your account; it looks like you tried to place two separate orders this morning, but it doesn't appear that either went through. However, it does sound as though you've been able to convert a file successfully. What happens when you log in to your account at https://cloud.acrobat.com/files? Do you see your converted file there? All converted files are automatically stored in your online account, even when you convert from within Reader.
    Best,
    Sara

  • Graphic Converter insisting on opening WMV files

    I'm trying to access wmv files, but even after downloading the Windows Media Player and Stuffit, my Graphic Converter keeps trying to open the files, and it CAN'T!! I just keep getting boxes of codes appearing on my screen. Do I need to get rid of Graphic Converter or is there a better solution? Thank you, in advance, for any help you can offer.
    Tara

    I don't think you're quite on target.
    Locate a .wmv movie file in the Finder. Select the file with the mouse and press COMMAND-I. That should open the Get Info window. Alternatively, use the Get Info menu selection in the Finder's File menu. Then locate the section labeled Open With. You may need to click on the little arrow on the side to open the section. Proceed as previously instructed.

  • Can somebody help me out? I need a Corel Draw (.cdr) graphic converted to Illustrator

    I'm trying to get a logo from brandsoftheworld.com but the one I want is in .CDR. I don't have Corel Draw (who does anymore) but I see that Illustrator 6 can open it. Unfortunately, I'm still on CS5.5. Can somebody help me out?

    Send it to me. I'll save it as an EPS file for you.
    Bob AT theindesignguy DOT com
    TwitchOSX <mailto:[email protected]>
    Thursday, January 24, 2013 7:11 PM
    >
          Can somebody help me out? I need a Corel Draw (.cdr) graphic
          converted to Illustrator
    created by TwitchOSX <http://forums.adobe.com/people/TwitchOSX> in
    /InDesign/ - View the full discussion
    <http://forums.adobe.com/message/5020999#5020999

  • I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out wh

    I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out what is going on? We have it set on auto renewal so I know its not that we haven't renewed this subscription, because we pay automatically.

    Hi olivias,
    It sounds like there may be some confusion on your system about what application should be associated with PDF files. You can reset filename associations by following the steps in these articles (depending on your operating system):
    How to change the default application for a file type | Macworld
    http://windows.microsoft.com/en-us/windows/change-default-programs#1TC=windows-7
    Please let us know if you have additional questions.
    Best,
    Sara

  • Batch create Multiple files in Acrobat X and X1 cannot convert Word 2010 with graphics

    I work for an exams board where hundreds of exam papers are produced. Once approved, these exams are converted to PDF and sent to print.  Using the Batch Create Multiple Files option is therefore essential to getting these papers print ready on time.  We have found that using this function to convert multiple Word 2010 files with graphics will not render it properly.  It deconstructs the graphics which loses the integrity of the exam paper. 
    I have trialled the same group of files on Acrobat X1 with the same result.
    Have other Acrobat Pro Users experienced the same problem?  Is there a fix? 

    I have uploaded the files and shared them.  These are the links
    Grade 11 Maths Standardisation Project Paper 2 2013.doc
    https://files.acrobat.com/preview/9694310d-ca7f-4919-883d-c53b36215d89
    Grade 11 Maths Standardisation Project Paper 2 Analysis Grid 2013.doc
    https://files.acrobat.com/preview/97da9e5f-d412-4d25-9bbc-d1a525d90826
    Grade 11 Maths Standardisation Project Paper 2 Diagram Sheet 2013.doc
    https://files.acrobat.com/preview/f50dd62e-af04-4060-85c5-fa81ce6803d8
    Grade 11 Maths Standardisation Project Paper 2 Formula Sheet 2013.doc
    https://files.acrobat.com/preview/7fc6007b-aaa6-4d65-9a8c-bf99818474a5
    Grade 11 Maths Standardisation Project Paper 2 Marking Guidelines 2013.doc
    https://files.acrobat.com/preview/b3a715bb-3683-48df-b0ec-3d17442275be
    Grade 11 Maths Standardisation Project Paper I Analysis Grid 2013.docx
    https://files.acrobat.com/preview/ab62e6b6-0261-434e-8a2f-382f74335685
    The first file is the problem file.  If you create this file separately, Acrobat will convert it perfectly.  But "Batch create multiple files" and the graphics are deconstructed on page 8

  • Hi apple users, I am in need of your expertise. I have a mov file and mp4 file which I need converted to DVD. However IDVD quality is terrible and wondering if anyone can help!?

    Hi apple users, I am in need of your expertise. I have a mov file and mp4 file which I need converted to DVD. However IDVD quality is terrible and wondering if anyone can help!?
    I created project in iMovie then exported it to MP4 and also MOV file at highest definition possible + I added it to iDVD and had a number issues about encoding errors regarding the mp4 file. MOV worked but the quality was terrible.....
    MOV file is as follows:
    4.08GB
    Codecs: H.264, ACC
    Colour Profile: HD (1-1-1)
    Dimensions: 1920 x 1080
    Duration: 12:33
    Audio Channels: 2
    MP4 File is as follows:
    3.02GB
    Codecs: H.264, ACC
    Colour Profile: HD (1-1-1)
    Dimensions: 1280 x 720
    Duration: 12:33
    Audio Channels: 6
    I have a MacBook Pro using the Yosemite system upgrade.
    I have updated iDVD and iMovie.
    I even bought the iSkysoft app from the mac store and that was terrible too.
    PLEASE HELP i am getting desperate and about to launch this macbook into the air
    2.66 GHz Intel Core i7
    Version 10.10. 2

    First of all, Hunt--thanks for responding!
    "First, where are you playing the MPEG-2, that you see that jitter?"
    On both a MacBook Pro, an Acer laptop and my Mac Tower. I would love to think that it is a problem with the playback system, and that if I merely send the file off to the duplicator they won't have the same problem. Maybe that is the case...I don't know if I have a choice rather than sending it off to see. But it happens in the same spots, in the same way, on all three of the players so I'm a little reluctant to have faith.
    "Another thing that can cause jitter in an MPEG-2 is the Bit-Rate - higher the Bit-Rate, the better the quality, but the larger the file. For a DVD, one is limited by the total Bit-Rate (both Audio & Video), but with longer prodcutions, some users choose too low a Bit-Rate. If this is the issue, one would need to go back to the original Project and do a new Export/Share."
    Of course, but in the case there is no more 'original project.' It is gone like the wind, stolen along with his computer and backups.
    I think I am stuck using one of two files as my master: a DVD he burned where I only see the stutter/vibration/jitter once, or the mpeg2 file where I see it three times. Hopefully, the duplication house can rip if off of one of them and not see the jitter. I know that in audio, my personal filed, you can do a lot to enhance already existing sound--EQ, compression, tape saturation emulation software, etc. I guess I'm hoping there is some kind of analog to the video world that address jitter after a source has been printed--if indeed the source has been printed to be jittery.
    Thanks,
    Doug

  • Have bought service below to convert pdf files into word excel, Have followed instructions but cannot convert file. Please help.  AD003225761BR Produtos pedidos: Qtd. produto 1 Adobe ExportPDF, Annual (Outro,Todos os idiomas disponíveis) My email: toledo-

    Have bought service below to convert pdf files into word excel, Have followed instructions but cannot convert file. Please help.
    AD003225761BR Produtos pedidos: Qtd. produto 1 Adobe ExportPDF, Annual (Outro,Todos os idiomas disponíveis) My email: [email protected]

    Hi Jwalter,
    Thank you for posting on the Adobe forums,Please let us know what is the exact issue.
    Also, if you want help on how to use the service, kindly try the link below.
    Adobe ExportPDF FAQ
    http://tv.adobe.com/watch/insights-on-acrobat-solutions/introduction-to-adobe-exportpdf/
    Thanks,
    Vikrantt Singh

  • Help with Illustrator Script! Batch convert files including subfolders - please help! :)

    Hello,
    I honestly have tried reading the other answers and researching to try to solve this problem.  I'm sorry for my ignorance in this area.  Please help!!!
    I'm trying to make a script (for Illustrator CS2) that will batch convert several files to PNG files.  The source folder has several subfolders and I need the script to go into the subfolders and convert those files as well.  The destination directory should be an entirely separate folder but with the same hierarchy as the original source folder.
    The script I have been using (that converts just as I need) is below.  The only problem is it doesn't do the subfolders.
    Any help would be so amazingly appreciated!
    ADOBE SYSTEMS INCORPORATED
    Copyright 2005 Adobe Systems Incorporated
    All Rights Reserved
    NOTICE:  Adobe permits you to use, modify, and
    distribute this file in accordance with the terms
    of the Adobe license agreement accompanying it. 
    If you have received this file from a source
    other than Adobe, then your use, modification,
    or distribution of it requires the prior
    written permission of Adobe.
    ExportDocsAsPNG24.jsx
    DESCRIPTION
    This sample gets files specified by the user from the
    selected folder and batch processes them and saves them
    as PNGs in the user desired destination with the same
    file name.
    // Main Code [Execution of script begins here]
    // uncomment to suppress Illustrator warning dialogs
    // app.userInteractionLevel =
    UserInteractionLevel.DONTDISPLAYALERTS;
    var destFolder, sourceFolder, files, fileType,
    sourceDoc, targetFile, pngExportOpts;
    // Select the source folder.
    sourceFolder = Folder.selectDialog( 'Select the folder
    with Illustrator files you want to convert to PNG', '~'
    // If a valid folder is selected
    if ( sourceFolder != null )
        files = new Array();
        fileType = prompt( 'Select type of Illustrator files
    to you want to process. Eg: *.ai', ' ' );
        // Get all files matching the pattern
        files = sourceFolder.getFiles( fileType );
        if ( files.length > 0 )
            // Get the destination to save the files
            destFolder = Folder.selectDialog( 'Select the
    folder where you want to save the converted PNG files.',
    '~' );
            for ( i = 0; i < files.length; i++ )
                sourceDoc = app.open(files[i]); // returns
    the document object
                // Call function getNewName to get the name
    and file to save the pdf
                targetFile = getNewName();
                // Call function getPNGOptions get the
    PNGExportOptions for the files
                pngExportOpts = getPNGOptions();
                // Export as PNG
                sourceDoc.exportFile( targetFile,
    ExportType.PNG24, pngExportOpts );
                sourceDoc.close
    (SaveOptions.DONOTSAVECHANGES);
            alert( 'Files are saved as PNG in ' + destFolder
        else
            alert( 'No matching files found' );
    getNewName: Function to get the new file name. The
    primary
    name is the same as the source file.
    function getNewName()
        var ext, docName, newName, saveInFile, docName;
        docName = sourceDoc.name;
        ext = '.png'; // new extension for png file
        newName = "";
        for ( var i = 0 ; docName[i] != "." ; i++ )
            newName += docName[i];
        newName += ext; // full png name of the file
        // Create a file object to save the png
        saveInFile = new File( destFolder + '/' + newName );
        return saveInFile;
    getPNGOptions: Function to set the PNG saving options of
    the
    files using the PDFSaveOptions object.
    function getPNGOptions()
        // Create the PDFSaveOptions object to set the PDF
    options
        var pngExportOpts = new ExportOptionsPNG24();
        // Setting PNGExportOptions properties. Please see
    the JavaScript Reference
        // for a description of these properties.
        // Add more properties here if you like
        pngExportOpts.antiAliasing = true;
        pngExportOpts.artBoardClipping = true;
        pngExportOpts.horizontalScale = 300.0;
        //pngExportOpts.matte = true;
        //pngExportOpts.matteColor = 0, 0, 0;
        pngExportOpts.saveAsHTML = false;
        pngExportOpts.transparency = true;
        pngExportOpts.verticalScale = 300.0;
        return pngExportOpts;

    You can turn off some of the dialogs with: app.displayDialogs = DialogModes.NO;
    #target photoshop
    if (app.documents.length > 0) {
    //Turn display dialogs off
    app.displayDialogs = DialogModes.NO;
    //=============Find Current Documents path================//
    var CurrentPath = activeDocument.path;
    //=============Establish current documents destination===============//
    var folder1 = Folder(CurrentPath + '/' + 'Flats');
    //=============Check if it exist, if not create it.============//
    if(!folder1.exists) folder1.create();
    //=============Establish current documents file name=========//
    //Current filename without the extension
    var CurrentFileName = app.activeDocument.name.replace(/\.[^\.]+$/, '');
    //=============Modify current file name================//
    var modifiedFileName = CurrentFileName +"Flat.psd";
    //=============Establish save path====================//
    var saveFileCurrentPath = new File(folder1 + '/' + modifiedFileName);
    //=============Flatten document ====================//
    activeDocument.flatten();
    //=============Rotate  document if in 'Landscape'====================//
    var myDocument = app.activeDocument;
    if (myDocument.width > myDocument.height) myDocument.rotateCanvas(90);
    //============Save File=======================//
    psdSaveOptions = new PhotoshopSaveOptions();
    activeDocument.saveAs(saveFileCurrentPath, psdSaveOptions, true, Extension.LOWERCASE);
    //Close Document
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);

  • I have purchased adobe pdf pack so i can delete some text from my converted files, this will only let me add text but not delete any, please help

    i have purchased adobe pdf pack so i can delete some text from my converted files, this will only let me add text but not delete any, please help

    I tyhink that you need ExportPDF, Adobe ExportPDF (read only). In any case, thius may help: Cancel your membership or subscription | Acrobat.com online services

  • Computer turns off when importing CDs and converting files! HELP!

    Hi everyone,
    I'm having trouble importing music from CDs and converting files on my computer. The computer just turns off when I do these things and I'm really stuck as to why. Can anyone help?

    I just started having the same problem. I was able to import songs from 5 cds with no problem, but when I tried a few more my mac started shutting down about halfway through the import of the song. It doesn't matter how many songs I choose to import, it happens on the first one everytime. Did you find a fix for this?

  • Itunes could not copy song because the file could not be converted.  Can anyone help

    Synced Jeff Wayne's War of the World from Mac to Iphone - 1 track could not be copied - error message "the file could not be converted" popped.
    Any suggestions as to problem and remedy?

    This "Workaround" doesn't fix the fact that Itunes generate an error message because it is unable to convert the audio file ALTHOUGH the audio file is OK.
    This problem started with Itunes 11.1.3, and it affects almost every album in my library for no reasons ...
    Tried deleting all library file, creating a new library and re-importing audio file that I know are OK ... funny thing, it's not always the same file that create this bug.
    Really a random bug ... reopened itunes with "compatibility option" set to "Windows XP SP3"   and  it's different tracks from the same album that can't be converted now.

  • When I "Convert Selection For iPod" the converted file has no audio.HELP!!!

    I have tried many times but the converted file always ends up with no audio.
    The files I am trying to convert are just basic Windows Media Player video/movie files each under 1GB.

    I have the same audio problem with .mov to .m4v conversion. The .mov conversions worked fine before, now audio is bad in .m4v - both in itunes & on ipod. I tried the sample_iTunes.mov & it is garbled too, upon conversion in itunes.
    This audio problem happened once before in Quicktime when playing podcast videos on Quicktime on a different computer, then it cleared up.
    I have no answers. Is it the new itunes 7.5.0.20 & windows?

Maybe you are looking for

  • Recording in CLOB through XSU?

    Big enough application for work with database Oracle is written with use Oracle XSU library for JAVA. And here there was a problem with preservation of the big textual documents in this base. Thus VARCHAR2 will not suffice. It is desirable, that the

  • How i can open the form in Internet Explorer

    Dears. I am using Developer 6i and Oracle8. I want to learn how i can execute my form in IE. Please teach me about that how i can be able to execute my form in IE. waiting for reply Zaheer

  • [Oracle AS, Datasource Pool]: java.lang.NullPointerException (Soap)

    I found below error on my applications that are on Oracle AS (data source pool). After I killed some processes on Oracle Database. <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Server.Exception:(/faultcode> <faultstring>java.lang.NullPointerException</faultst

  • UCCX 7 SR5 agent login gives timeout - unable to connect to UCCX server

    Team - running high availability. The CAD login for UCCX 7 SR5 gives occasionally timeout errors. Unable to connect to UCCX server. What is the root cause of this? on CAD client PC based on Cisco recommendation C:\Program Files\Cisco\Desktop\config,

  • AmaroK 1.4 with moodbar support...

    Just upgraded to amaroK 1.4 and its running fine here The only thing i have noticed is that the moodbar is not enabled in the version from the repos because of missing exscalibar... Moodbar shows the "mood" of your music by colorful and configurable