Scripting question: how to suppress Aperture dialog when exporting?

Hi Forum,
I started to write an AppleScript for Aperture to perform a backup. The standard backup procedures of Aperture are not quite right for me so I decided to write my own using AppleScript.
One question which arised was how I can supppress the dialog box which Aperture opens when an export could not be done because of a missing master. I want to suppress the dialog box and instead get an error returned from Aperture into AppleScript. is that possible?
Koen van Dijken

Hello Koen,
have you solved your problem by now? For me the following does work:
I does not seem to be possible to set Aperture to suppress the warning, so catching the error in a "try" clause will not help. The best option is to check, if the master image is online, before trying to export and skipping the offline images, like in this example,  see: http:/dreschler-fischer.de/scripts/ExportMastersWithoutWarning.scpt.zip
on run {}
  -- export masters, but check it they are online before trying to export
  -- skip if not online
          set exportFolder to (choose folder with prompt "Choose an export folder")
          tell application "Aperture"
                    set imageSel to (get selection)
                    if imageSel is {} then
                              error "Please select an image."
                    else
                              repeat with i from 1 to count of imageSel
                                        try
                                                  set onlne to get online of (item i of imageSel)
                                                  if onlne then export {item i of imageSel} naming folders with folder naming policy ¬
                                                            "Project Name" to exportFolder
                                        end try
                              end repeat
                              return imageSel
                    end if
          end tell
end run
Regards
Léonie

Similar Messages

  • Compare PDF: How to suppress compare dialog box programmatically...

    Hi,
    We are using Acrobat 8.0. Using Visual Basic, we are opening two PDF files in Acrobat 8.0 professional.We are comparing those two documents using MenuitemExecute(DIGSIG:CompareDocuments ) command and generating the side by side comparison file programatically.
    During this process after executing the command "MenuitemExecute(DIGSIG:CompareDocuments )" adobe is displaying "Compare Documents" dialog box where the user need to click OK on it in order to continue with the comparison.
    My requirement is to suppress the dialog box and automate the process. Our application is developed in Visual basic.
    Could you please let me know how to suppress the dialog box using Visual basic. Is it possible using VB or any alternatives for this. Because we need to compare many PDF documents so clicking OK every time requires user intervention.
    Thanks for your help in advance.

    Acrobat Scripting Forum http://www.adobeforums.com/webx?13@@.3bbedaa6
    Acrobat SDK Developer Forum http://www.adobeforums.com/webx/.eed56a0/

  • How to set color profile when exporting a RAW file version as a JPEG?

    I import my raw files to Aperture and when exporting as a JPEG I want to specify a color profile of sRBG. I cannot see how to set the color profile for the export. Does anyone know how to do this?

    When you go to export versions, edit the presets, and there is a drop down box that lets you select the profile.
    I'd suggest picking up the Aperture book by Luna, Long, and Harrington. Lots of great info there.

  • How to Suppress Warning Dialogs in Photoshop CS3

    Hi All,
         I am automating photoshop to process image conversion(using python and appscript) and at times photoshop comes up with a "Warning Dialogs" for some images when trying to open. I tried to suppress this warning when opening a PDF file by using the options
    PDF_open_options -- Settings related to opening a generic PDF document
    Inherits from:open_options
    Properties:
    suppress_warnings boolean -- supress any warnings that may occur during opening
    Still Photoshop opens the warning dialogs.I want a solution so that I can manually or programatically(using appscript or python) make photoshop not to show any warning dialogs.

    Yep hade a solution
    You are welcome to try this for what its worth. It should do 2 things. First if there is a Photoshop "warning" record the info the dismiss the dialog proceed with file else record the "error" info kicked back to AppleScript but not process this file. This is a far as I got with this and you would be well advised to do some testing of your own. Requires Enable access for assistive devices this is in system prefs.
    property Error_Report : (path to desktop folder as Unicode text) & "Problem Image Report.txt"
    global PS_Info
    set PS_Info to ""
    set The_File to choose file
    tell application "Adobe Photoshop CS3"
    activate
    try
    with timeout of 2 seconds
    open The_File
    end timeout
    on error
    my Check_For_Dialogs()
    tell application "System Events"
    tell application process "Adobe Photoshop CS3"
    keystroke return
    end tell
    my Problem_Images(The_File, PS_Info)
    end tell
    end try
    if exists document 1 then
    set Doc_Ref to the current document
    tell Doc_Ref
    -- do your stuff here
    end tell
    end if
    end tell
    on Check_For_Dialogs()
    -- This should catch the text of a Photoshop warning dialog
    try
    tell application "System Events"
    if UI elements enabled then
    tell window 1 of application process "Adobe Photoshop CS2"
    if title contains "Adobe Photoshop" then set PS_Info to value of static text 2
    end tell
    else
    tell application "System Preferences"
    activate
    set current pane to pane "com.apple.preference.universalaccess"
    display dialog "UI element scripting is not enabled. Check \"Enable access for assistive devices\""
    end tell
    end if
    end tell
    return PS_Info
    -- This should catch an error kicked back to AppleScript
    on error eM number eN
    set PS_Info to "Error: " & eN & ". " & eM
    return PS_Info
    end try
    end Check_For_Dialogs
    on Problem_Images(The_File, PS_Info)
    -- Whatever info about the file you want a record of…
    set File_Name to name of (info for The_File)
    -- String of records to write to "Problem Image Report" text file…
    set The_Info to File_Name & tab & PS_Info & return
    try
    open for access file the Error_Report with write permission
    write The_Info to file the Error_Report starting at eof
    close access file the Error_Report
    on error
    close access file the Error_Report
    end try
    end Problem_Images
    Writes out a report at desktop with info like:
    11234567890 copy 3.tif Error: -2763. Cannot open the file because the open options are incorrect
    hfgfhr.jpg This document may be damaged (the file may be truncated or incomplete).  Continue?

  • How to maintain pixel size when exporting?

    When exporting an edited image (ex: 20 MB) from Aperture to a desktop folder, I choose file>export>versions>jpeg original.  When I open the exported image in the desktop folder (it opens in preview), the Tools/Inspector window says that the image is now only 2MB.  This has not always happened.  Can someone tell me what I might be doing or not doing that is causing this, or what settings I need to change?
    Thank you.

    golindy,
    JPEG is a lossy format that relies on two ways of reducing the file size. The first is the lossy part that throws away data that is percieved to be unimportant for human vision, the resulting data is then further compressed losslessly using the same type of compression zip uses (this is why zipping a JPEG doesn't lead to further size reduction).
    The more you throw away in the first part, the more likely the image is to suffer from 'compression artefacts'. The number you select on export determines how much data gets thrown away.
    I don't know what '12' officially means for Apple, but from eyeballing files, it seems like it throws away pretty close to zero. So a file output with 12 is top quality.
    Aperture has always worked the same way here, it hasn't changed during any update.
    However, some things that may affect it are:
    1) The effeciciency of the both compression algorithms seems to improve over time.
    So a year ago, a 20 Mega Pixel image might compress down to a 5MB file using a quality setting of 10. Today that very same file may compress down to a 4MB file at quality 10. But it's important to note, the quality of the file will be the same, quality 10. All that has happened is the more efficient algorithm has allowed an extra 1MB of file space saving.
    2) The raw converters periodically get improved with new rendering. One area that has continually improved in Apeture is noise supression and more natural sharpening.
    These impact the first part of the compression process. A noisy image with harsh shapening will compress less than a clean image with more subtle sharpening. So better raw processing can also impact the exported size. Note, this one works in both directions, an improved conversion that resolves more details will output a larger file size, whereas an improved conversion that gives less noise will output a smaller file size.
    So in your case, I think what was happening was you were not losing quality, just gaining file size efficiency, and now you have changed to quality 12, you are exploiting that file space saving by now outputting higher quality files.
    Andy

  • How to keep User Order when exporting a collection?

    I made a collection of about 300 VC's, chosen from many folders in my catalogue. These images were taken over a 10 year period, using 3 different cameras and having different names and file types. The collection was sorted by "User Order". I spent a good deal of time organizing the collection so that the images made visual sense when shown as a slide show on a digital album.
    I exported the collection to my hard drive as jpegs, and checked the box to place them back in my catalogue, in a designated subfolder within my parent folder. All went well except they are now completely out of order, and that order makes no logical sense whatsoever - not by date, metadata, filename, attributes, nothing that I can figure out. I have to start all over again to reorder them - something that will take several hours.
    What did I do wrong? How can I keep my designated user order when I export a collection? 
    I am using LR 4.3.
    Thanks for your replies.
    René

    sunhotmoon wrote:
    What did I do wrong? How can I keep my designated user order when I export a collection? 
    Hi Rene,
    Lightroom does not maintain user order upon exporting. It would make no sense when not exporting back to catalog, but when exporting back to catalog I can see that it may be desirable - consider making a feature request (Idea) here:
    http://feedback.photoshop.com/photoshop_family/topics/new
    In the mean time, I *think* what most people do to assure export ordering is to name the files according to desired order, then sort by filename. I could be wrong about that, but that's all I got.
    Beware: If said approach is adopted, one would not be able to do incremental exports and maintain such ordering (e.g. when single image added to publish service), so all files would need to be re-exported if such change was made.
    I have requested access to sort order and added-order via plugin for plugin-assisted remedy, but so far no go.
    Another idea (which may not be acceptable) is to use capture-time to maintain sort order of exported photos (via a plugin like Exportant), then it would be easy enough to maintain user order by manipulating capture time (of exported photos I mean, post-export), but then you'd lose the true capture-time, granted: capture time could be put into some other field, but that might foul things up downstream... hmm - sorry for rambling/brain-storming out loud.
    Maybe somebody else has a better idea.
    Rob

  • How to create a hyperlink when exporting .pdf?

    Hi guys,
    I've been doing quite a bit of research on how to make an object into a hyperlink when exporting my .ai as .pdf.
    So far I've come across guides that show the method of using Object > Slice and the Attributes' Image Map, but none of them seem to work when I open my exported .pdf.
    How do you guys create objects with links when exporting .pdf?
    Thanks in advance.

    InDesign, most probably.
    Or create the PDF in Illustrator and use Acrobat (Pro) afterwards to make links.
    Depends on what's inside the document.

  • InDesign CS: suppress warning dialogs when opening file

    Hello,
    is there a way to suppress the warning dialogs that inform you about missing fonts or linked images? If I have to modify a large amount of files with a script it would be easier if I handle those situations myself after I opened the file instead of having somebody (or myself) to sit in front of the computer while the script runs and close those messages manually.
    Best regards,
    Christian Kirchhoff

    If you use these two functions to control user interaction, this part of your script will survive when you upgrade.
    function neverInteract() {
    if (app.version == 3) {
      app.userInteractionLevel = UserInteractionLevels.neverInteract;
    } else {
      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;
    function interactWithAll() {
    if (app.version == 3) {
      app.userInteractionLevel = UserInteractionLevels.interactWithAll;
    } else {
      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    Dave

  • How to ignore link dialog when file open. using javascript

    open linked eps file from script(below). then the dialogbox show up.
    how do i pass this dialog box?(i want ignore link.)
    but i can't find OpenOptions link property.
    var optRef = new OpenOptions();
    optRef.updateLegacyText = true;
    app.open('A.eps', null, optRef);
    Thanks!
    becky

    temporarily suppress Alerts
    app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    app.open(File('/c/temp/missinglink.ai'));
    app.userInteractionLevel = UserInteractionLevel.DISPLAYALERTS;

  • How to suppress print dialog box from popping up under a condition

    Greetings...
    There may be a better way to accomplish what I'm trying to do, so I'm open to outside-the-box suggestions.
    I have a pretty simple page which lists a set of statuses and descriptions of each. The user can edit these status flags and their descriptions on the page as well. When I view the page in "printer friendly" mode, I see a nice simple report of what the statuses are and their descriptions. Everything works great so far.
    In our work request system built in ApEx, there's a page where someone can view the details of a work request, including the current status. When someone clicks on the help of that item, what I'd love to do is simple show the "printer friendly" version the status page mentioned above in a pop up window. My problem is that the print dialog box automatically shows up when a page is displayed in "printer friendly" mode and I do not want this to happen in this case.
    I see the javascript code in the Printer Friendly page template which causes the print dialog box to show up automatically, but I don't want to remove it in the template just for this one case. This would suppress the print dialog box on all "printer friendly" page views and the users are used to it showing up when they ask to print the page.
    I guess I could create a custom request to pass to the master status page which would pretty much do everything that the "printer friendly" mode is doing, but that seems like a lot of work when I'm so close to using something that is built in.
    Am I not seeing some simple other way of doing it or perhaps asking too much? Any suggestions?
    Shane.

    Hi,
    I think you have to call the FM GET_PRINT_PARAMETERS and pass NO_DIALOG = 'X'.
    Something like:
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          no_dialog      = 'X'
        IMPORTING
          out_parameters = ls_params
          valid          = lv_valid
        EXCEPTIONS
          OTHERS         = 1.
      NEW-PAGE PRINT ON PARAMETERS ls_params NO DIALOG.
    * Display Table
      lr_table->display( ).
    add: Spool numbers can be found in TSP01 or in system field SY-SPONO available in the submitting program...
    Hope it helps,
    Kr,
    m.
    Edited by: Manu D'Haeyer on Sep 28, 2011 10:02 AM

  • How to Suppress Report Total When Using Sum on Columns & Break Formatting

    I need to know how to NOT show the report total line when using the sum functionality with a break in a report.
    I am summing two columns, a debit amount and credit amount. I am breaking on the first column which is the level of a hierarchical query. I want to see something like this:
    Parent Record xxxxxxxxxxxxxx
    Parent Sum $$ $$
    Child Record xxxxxxxxxxxxxx
    Child Record xxxxxxxxxxxxxx
    Child Sum $$ $$
    However, when I run the report, I also get a report total line under the child sum which is really meaningless for this report.
    I have also tried creating this report as an interactive report. When applying the sum on the two columns, I do get the sum totals on the break only - no report total - however, it is reversing the order of the hierarchical query results putting the child records first and the parent records second.
    Thanks in advance for your help.

    Hi, and welcome!
    I don't think that there's an easy way to "switch off" the Total line on a report. The nearest I could suggest would be to either hide the entire row or colour the text so that it's the same as the background - either way, the total is calculated but the user won't see it.
    If you put something like the following into your report region's Region Footer:
    <script type="text/javascript">
    var outertable = document.getElementById("#REGION_ID#");
    var innertable = outertable.getElementsByTagName("TABLE")[1];
    var rs = innertable.rows;
    var lastrow = rs[rs.length-1];
    if (lastrow.cells[0].innerHTML == '<b>TOTAL</b>')
    rs[rs.length - 1].style.display = "none";
    </script>Then, on your report's Report Attributes page, scroll down to the Break Formatting section and put TOTAL into the "Display this text when printing report sums" setting. Also, in the "Layout and Pagination" section, set "Enable Partial Page Refresh" to No.
    The above code is based on the report and region templates that I'm using here: [http://apex.oracle.com/pls/otn/f?p=267:147] (Theme 18, "Report Region" region template and "Standard" report template). Your report may use different templates, so the first two lines on the code may have to change. #REGION_ID# would be replaced with the region's ID value (which would be "R" followed by a long number). As long as you can identify the HTML tag that uses this ID value, you can then get to the actual table that contains the data as it would be a TABLE within that tag - the [1] above is the second table within the region. In some instances, you may have to use "region_#REGION_ID#" as the starting point.
    Andy

  • I forgot my security questions; how can I change them when I can't seem to use my rescue email?

    So I've forgotten my security questions, and for some reason there is no option for me to use my email to change them when editing my apple ID, though many other users seem to find this solving their problem. Is there some other way I could do this online? If possible, I would prefer not to call apple support.
    Thanks to anyone who can help.

    The Three Best Alternatives for Security Questions and Rescue Mail
         If you do not have success with one, then try another:
            1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
            2.  Call Apple Support in your country: Customer Service: Contact Apple support.
            3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • Suppressing progress dialog when importing Tagged Text?

    Howdy:
    I'm using the Adobe Tagged Text import provider to place text in a document. I'm making the call to iImportProvider->ImportThis() with the kSuppressUI flag set. Even though the flag is set, InDesign is still displaying the progress dialog. Does anybody know how to keep that from happening? I don't see anything in the documentation about this.
    Thanks,
    Noel Williams

    Hello:
    I have the same problem that Noel.
    I'm using:
    * prov->ImportThis(database, stream, kSuppressUI, &contentUIDRef);
    * prov->ImportThis(database, stream, K2::kSuppressUI, &contentUIDRef);
    * prov->ImportThis(database, stream, (K2::UIFlags)0, &contentUIDRef);
    But the progress Dialog appears.
    This problem is critical for me.

  • How to suppress page header when rendering particular group footer

    Description:  I am using Crystal Reports 2008.  I have a report with a page header, and several groupings.  The groups all suppress their headers, but have footers.  The grouping is in the order:  type,county,city,status,parent.  The first 3 footers force a new page before the footer.  The county footer includes summaries and charts.
    Problem:  The client wants the header displayed for the detail and the header for the county footer to be different.  How can I make this happen?
    More Info:  I currently have just a page header.  I have tried messing with the suppress formula for the page header, but I cannot figure out the correct formula to use to suppress the page header on a county footer page.  Is there a way to do this, or is there a completely different approach I should be taking to solve this? 
    I can provide more info if needed.
    Google search was unhelpful in solving this problem.  This problem is driving me nuts.  Any help appreciated.
    Thanks,
    Michael

    What i would suggest is to create a new variable in WhilePrintingRecords evaluation time. For example:
    1. Boolean variable set to TRUE in Group Footer #2 (County)
    2. Reset it to FALSE in Group Header #2 and Group Footer#1
    3. Use the variable for conditional suppression

  • How to suppress page header when group footer prints

    I would like to suppress the page header on my report when a group footer prints.  My group footer is going to be a bunch of legal mumbo jumbo and I'm going to have it do a page break before so it prints on it's own page.  I do not want my page header info printing on this page.
    Is there a way to do this?  I am on Crystal XI.  Thank you in advance.

    I haven't tested this, but...
    Formula @InGroupHeader:
    WhilePrintingRecords;
    BooleanVar InGroupFooter;
    InGroupFooter = False;
    Formula @InGroupFooter:
    WhilePrintingRecords;
    BooleanVar InGroupFooter;
    InGroupFooter = True;
    PageHeader.Suppress:
    WhilePrintingRecords;
    BooleanVar InGroupFooter;
    InGroupFooter;
    Edit: I think I like Graham's solution better, actually.
    Edited by: Garrett Fitzgerald on Jun 15, 2009 12:12 PM

Maybe you are looking for

  • How can I use a foreign SIM in a Japanese Apple store bought iPhone 4s?

    Recently I bought an iPhone 4S from the Apple Store in Ginza (I have just moved to Japan) and took it with me on holiday to Australia. Not wanting to pay extortionate roaming charges I bought myself an Australian Alstra SIM and put it in my phone. My

  • How to install Oracle9i Client on W2k3  Server

    Hello, Does anyone know the order to install the 9i client and which packages are actually needed to install it on Windows 2003 Server? I originally d-loaded the 9203win2k3.zip file but it turns out to be a patch. I could not find a server 2003 speci

  • Error in Attachment

    Hi, I have created Document Entities, Document catgories, Attchment functions. but, when trying to attach the document, when form opens it says FRM-40815:  Variable Global.A7_1_PK1 does not exist. How to solve this error.? pl. help urgent. Thanks Kav

  • Consolidation of legal entities defined as co code

    we have two codes in SAP ECC 6 both are separate legal entities.Co Code A owns 80% of shares of Co Code B what should be the structure from consolidation point of View i.e parent subsidary relationship how would this be presented in SAP for consolida

  • Best practice for highly available management / publishing servers

    I am testing a highly available appv 5.0 environment, which will deploy appv packages to a Xenapp farm.  I have two SQL 2012 servers configured as an availability group for the backend, and two publishing / management servers for the front end.  What