Writing an Applescript to Export my Photos to a Web Page

Hi all,
I'm trying to write a script that imports some photos then immediately exports it into a web page. The problem I am having is making the script click the "Export" button of the Export Photos window. This is what I have so far...
tell application "iPhoto" to activate
tell application "System Events"
tell process "iPhoto"
keystroke "I" using {shift down, command down}
keystroke "E" using {shift down, command down}
--click button 1 of window "Export Photos"
end tell
end tell
I'm new to applescript and don't really know how to get it to push the button of that window. Does anyone know what is going on? The error I get is System Events got an error: NSReceiverEvaluationScriptError: 4. Any help would be much appreciated.
Thanks,
Kliph

This is a known issue in Firefox 4 beta 12. You could wait til' the RC comes out, or you could grab one of the latest nightly builds availible here that fix this problem: ftp://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
Just a note though, nightly versions of firefox are generally less stable than betas or releases. I am waiting for the Release Candidate to come out myself. (Should be early next week)

Similar Messages

  • Blocking the ability to download a photo from a web page using iWeb

    You guys have been so helpful about helping me make video files and music tracks unavailable for downloading from my site by altering the javascript code on my iDisc. Now I have another problem.
    The photo/pictures placeholders in iWeb permit me to place photos on my web pages. Is there a way to alter the code so that the option to drag-copy or download the picture from my site can be disabled?
    Thanks for your help!
    Jim

    Here are some variations that make messing with strings easier.
    $LocalPage ='\\server\share\sam1.html'
    # build URI
    $template= 'https://server/reports/116/output/?start-year={0}&start-month={1}&start-day={2}&days=1&company-code=1'
    $d=[datetime]::Today.AddDays(-1)
    $uri=$template -f ($d.Year-2000),$d.Month,$d.Day
    (Invoke-WebRequest -Uri $uri).Content | Out-File -FilePath $LocalPage -Force
    & $LocalPage
    ¯\_(ツ)_/¯
     Nice!
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

  • Exporting full sized files to web pages, ideas?

    I have used the Betterhtml plug-in iPhoto to create web galleries of photos that contain links to the the full-sized orginal file. This is how I share photos with my colleagues. I edit in iPhoto, post to a web page with links to full resolution files and they can download the ones they want. I want to be able to do this in Aperture. Are there any plug-ins or is there a way to do this?

    for the web galleries there are thumbnail and detail pages. each of the pages lets you customize the size of the images. you could specify that the image size for the detail pages fit within a square that has a pixel dimension of the longer dimension of your originals. so, if your images are 3000x2000 pixels specify the width/height of the square to be 3000 pixels.
    the only caveat is that if you've cropped any of the images which could result in, say a 2500x1800 pixel image, i think the image that Aperture outputs in that case will be up-rezzed to 3000x(whatever) pixels.
    thinking some more...
    another way to do it would be to manually export a folder full of thumbnail images (call the folder "thumbnails") and a folder full of full-sized images (call the folder "hi-res").
    then you could write a PHP page that reads the contents of the thumbnails folder and dynamically creates image links that show the thumbnails, but link to the image files in the high-res folder. easy enough to do, if you know how to use PHP. since the PHP reads the contents of the folder and create the resulting HTML dynamically, you only need to write the PHP page once and use it over and over again. if anyone is interested in how to do this i can post sample code later.
    hope that helps,
    scott
    PowerMac G5 2.5GHz   Mac OS X (10.4.7)   MacBook Pro 2.0GHz

  • Embedding a photo slideshow to web page

    Hello my name is tom.
    Im looking for any and all help that can be given. I recently took on a project of putting up a website for a friend. I will be the first to admit I
    am NOT a programmer or coder. and some stuff is very confusing. Anyway I want to embed a photo slideshow (made from fireworks cs4)
    into a web page. What I actually wanted to know is how to edit the files created to get it to work on the webpage.
    It (fireworks) created  three files and two folders with the photos and thumbnails in them which are ---- index.html, black_player.swf and slideshow.xml
    im trying to explain it the best I can (bare with me) If someone could explain in detail what to and how to edit I would grealty appreciate it.
    I have tried and got as far as getting the the player to come up. but no images in it.  One thing I do know I cannot put the html file in the public_html folder
    cause I'm not running the player off the main page. I actually want to run it off a sub folder public_html/Gallery/RFL the images folder is inside this folder also. please please help me!!
    Some info if it will help
    The site is http://www.sluggos-inc.com it's not up yet.
    Oh yeah I have the site set up as frames I would like this player to play in the main.html frame. the template i included might work I think all the graphics point to the server so it should.
    Thanks in advance if anyone could help.
    Thomas

    I've never used the slideshow feature in FWs, but due to the large number of questions here and on the Fireworks forum I decided to give it a go  :-)
    When I created the slideshow I was asked where I wanted to create it, so I choose a folder on my desktop.
    It created:
    Scripts folder
    Images Folder
    Index page
    player_black (the skin for the Slideshow)
    slideshow xml
    You can always change the location of the folder where the slide show is created, that is - create the slideshow into a sub folder of your working site files.  That way there will be need to move any files around as I descibe below.
    However, what I did was:
    I copied all those folders/files into a sub folder of a defined Dreamweaver site named:  Gallery
    I then opened the Gallery folder within Dreamweaver and found the index page and opened it, viewed in a browser and had no problems with viewing any of the slideshow - images were all in tact.
    You need to be careful that when you move all your files that you copy *all* the folders and files that were generated when you created the slideshow. Also, when you upload the slideshow make sure that you upload *all* the files (as created above) to the remote server - that includes the scripts folder.
    You do need to be careful when moving the files that you don't move them into the root of your defined site, otherwise your original index.html page will be overwritten by this newly created index.html which is the slideshow page.
    The best method would be to initially create the Slideshow directly into a subfolder of your site, that way, if you ever need to update the slideshow, fireworks will know where your original files were saved to.  Otherwise, you may find that you won't be able to edit the original working files as the links may be broken or whatever.
    Hope this helps a little  :-)
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    Book: Ultimate CSS Reference
    http://www.sitepoint.com/launch/005dfd4/3/133
    http://twitter.com/nadiap

  • Save photos from a web page

    Hello everybody:
    I'd like to save a photograph taken from a web page as a jpg file. I have written the following application, but It doesn�t work.
    public static void main(String[] args) {
    try {
    URL url = new URL ("http://ia.imdb.com/media/imdb/01/I/68/65/38m.jpg");
    URLConnection connection = url.openConnection();
    DataInputStream inStream = new DataInputStream(connection.getInputStream());
    String inputLine;
    File outFile = new File("fotoTomHanks.jpg");
    PrintWriter outStream = new PrintWriter(new FileWriter(outFile));
    while ((inputLine=inStream.readLine())!=null) {
         outStream.println(inputLine);
    inStream.close();
    outStream.close();
    } catch (MalformedURLException me) {
    System.err.println("MalformedURLException: " + me);
    } catch (IOException ioe) {
    System.err.println("IOException: " + ioe);
    I think I'm not using the correct streams or writers because I'm doing the same i would do if I'd like to save a string in a txt file, but I don�t know how I should do it.
    Thank you in antitipation for your help.

    Repeat after me:
    Readers/writers are for text data.
    Streams are for binnary data.
    JPEGs don't have text lines.To further expound:
    *A low-level stream receives and writes bytes.
    *A high-level filter stream typically receives and writes primitive types such as doubles, ints, or UTF.
    *Readers and writers can be thought of as specialized filter streams for reading and writing units of Unicode characters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Help with putting a logo on top of a photo as a web page heading

    I am new to this and stuck with what i imagine is a simple
    problem. I need to replace a former name with a new one on a
    website. The old logo has also been changed. The page headings have
    been changed also.
    I have a logo scanned as a jpg but can re-sacn it if need be.
    I need to take a photo, crop it to fit the alloted available sapce,
    and somehow combine it with the logo on top of it, with a
    transaprent background so that bi can see the photo underneath.
    But, the logo has a white background and I cannot get it to
    be transparent.
    Re the section titles I need to put in new ones as some terms
    have changed. I can remove the existing ones but don't know how to
    get them inserted back into the webpage with edit in contribute.
    I am trying Contribute as I thought Dreamweaver might be too
    complicated for me. However, I also own MS Publisher and the usual
    MS Office XP office suite. In Publisher I can make transparent
    effects over text sections, which has the logo but not its
    background showing, but it won't work with putting it on top of a
    photo.
    And, I cannot get the section headings to insert into the
    page i am editing with Contribute. Please help if you can. thank
    you.

    First:
    1. get hold of a Photoshop-like program that can work with
    layers (Photoshop Elements, The Gimp, etc.)
    2. Open your logo.jpg and use the magic-staff to select the
    background
    3. delete the background
    4. import the photo you want to use for the background (or
    open it in your pohot-program, select all and copy to your
    logo.jpg)
    5. your photo becomes the background layer and your logo the
    layer on top of it.
    6. save your original file with the layers as a f.i. psd file
    Second:
    1. in you browser select the image you want to replace
    2. use your right mouse-button to see the properties (height,
    width, path and name)
    3. now open your logo.psd
    4. adjust the file to fit the image it has to replace (height
    and with), you probably have to crop the image
    5. save your file and export you new logo.jpg, but give it
    the name of the image it has to replace
    Third:
    1. open Contribute
    2. Click File, Publish file from my computer
    3. Publish the file (make sure you have 'delete'rights on the
    website to be able to overwrite the old file)
    4. find the folder the image that has to be replaced is in
    5. publish you new image to that folder
    6. Contribute asks you if you want to overwrite the old file,
    and you want that
    7. The image has been replaced

  • Help! Trying to add bridge photo gallery to web page in CS4

    I am new to this and have created a photogallery in bridge.  I uploaded the files to my server and they don't appear anywhere.  How do I save them and then add to the page using dreamweaver cs4?   All of the tutorials I find show how to create them not how to apply.
    Thanks in advance from a desperate and frustrated newbie!

    Thanks for the suggestion but i need a single box or
    photo frame. Is there any way to do that? Thanks
    That's what it would look like if you put it in an iframe.
    Visit this page
    http://web.mac.com/varkgirl/iWeb/Slideshows/Adding%20External%20Slideshows.html
    Scroll to the bottom and click "Autoviewer" to see what it would look like.

  • Drop and drag photos to a web page from iPhoto with IOSX

    I have a Macbook Pro 2009 model and have always been able to drop and drag photos from iPhoto or the desktop to Facebook pages or emails
    and since installing OS X Yosemite this feature no longer works.  I see from other discussions that air drop only works for models of Mackbook later than 2012.  Will there be a resolution for this issue for those of us with otherwise well functioning computers pre-2012?

    No - suggest to Apple - iPhoto menu ==> provide iPhoto feedback
    LN

  • Iphoto2 verses iphoto5, exporting photos to web pages

    hello,
    I am wondering how different the feature of exporting photos to the web page in new iphoto5 version verses iphoto2 (which i have) is? does it have the option of the aligning images in the table cell, choosing the font's face and size. where i can find this information, please?
    appreciate your help,
    yelena

    Hi Yelena,
    I will show you a screenshot.
    Web page Export
    You can also choose to use a third party plugin called BetterHTMLExport
    BetterHTMLExport for iPhoto on Mac OS X
    There might be others so search at Versiontracker for iPhoto Plugins

  • Can't export a web page

    I've just upgradded to iLife '08. When I try to save a web page the same as I had with the previous version of iPhoto, it doesn't work. The following steps are taken:
    Highlight eight photos in a folder
    Select File>Export
    In the Export Photos window, select Web Page tab
    Make other selections on the page and click Export
    Then I've tried various file destination folders and the Desktop
    When I click OK, an Exporting sub-window appears for a moment, then it changes to say
    Unable to generate web page and only gives me the option to Cancel
    It gives me no clues as to why it is unable to generate a web page. It has created the folders for the Images, Pages and Thumbnails but there isn't anything in those folders. I believe this is the same steps I used many times with iPhoto '06 to create a web pages.
    Does anyone have an idea on how to save web pages with the new iPhoto? How can I revert back to the old version of iPhoto?
    Thank you for you help.
    Bill H

    Bill:
    Welcome to the Apple Discussions. Try the following:download and run BatChmod on the iPhoto Library folder with the settings shown here, putting your administrator login name, long or short, in the owner and group sections. You can either type in the path to the folder or just drag the folder into that field. See if this will help.
    Next, log into another account or boot into Safe Mode and see if you can export to a web page. If so then there's something amiss with your account. If not, then a reinstall of iPhoto seems appropriate.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Export to Web Page

    Pretty please, Apple. Let us export the sheet as a web page.
    iWeb just puts it into a pdf. I need my staff to view the info, and 2 people to edit it.
    Kisses.

    My people actually use Contribute CS3. The program allows them access to a folder(s) that have editable html files. They merely work on them and "Put" them back.
    I assume iWeb has the same feature.
    The problem Contribute has: It doesn't always preserve the size of the tables. It would be great to have it be done directly from Pages, and then saved to a html file with the updated file to upload.

  • I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5. I am receiving an error problem when doing the following -  I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive whe

    Hi, I am having a little trouble with exporting images to another drive and Catalogue and need some help if anyone can give me some advice
    I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5.
    I am receiving an error problem when doing the following -
    I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive where a Lightroom Catalogue has been created. In this Catalogue I have arranged for the images once exported to be moved to a different folder - I used the Auto Import process under the File dialogue box.
    When processing the Export I receive an error message for each of the images being exported indicating the following -
    Heading Import Results
    Some import operations were not performed
    Could not move a file to requested location. (1)
    then a description of the image with file name
    Box Save As                                  Box  OK
    If I click the OK button to each image I can then go to the other Catalogue and all images are then transferred to the file as required.
    To click the OK button each time is time consuming, possibly I have missed an action or maybe you can advise an alternative method to save the time in actioning this process.
    Thanks if you can can help out.

    Thank You, but this is a gong show. Why is something that is so important to us all so very, very difficult to do?

  • I need to export a photo at around 1meg file size,and dont seem to be able to do it in the presets can anyone help please ,I shoot on a canon 5d

    I need to export a photo at around 1meg file size,and dont seem to be able to do it in the presets can anyone help please ,I shoot on a canon 5d

    I believe Frank is referring to the end use (e.g., for print or on-screen use).
    Until he returns, I can tell you that I ran a quick test using an image from the Aperture 3 training book library which was as follows:
    Camera = Canon EOS 5D Mark II
    Master resolution = 5616 x 3744 (21 MP)
    I was able to export to a JPEG with end file size of 1 MB as follows:
    Export Presets drop-down > select 'Edit' option
    Selected preset name 'JPEG - 50% of Original Size' > change percentage value to 40% > change DPI value to '300' > click OK to set as current default > Export version to desktop.
    The exported JPEG has a resolution of 2246 x 1498 and appears on screen to have the same image quality of the original in Aperture.
    Note - I did not change the default Image Quality slider in the Export Preset dialog (which left it at 10).
    Basically, you will need to play around with the settings until you find the appropriate values to arrive at an image version you want.

  • I'm getting an error message in Lightroom 6 when I try to export a photo. It's "The specified folder is not writable". It doesn't matter which folder I pick, I get the same message. However, if I open the image in photoshop and then save it, it works just

    I've already reset my lightroom preferences, didn't work. I also uninstalled, and reinstalled lightroom. Didn't work either.
    I have no problems with any other programs including photoshop, so this has to be an issue with lightroom.
    Also, I can import from a memory card using lightroom and save to them to the folders just fine, the error only comes when I'm exporting a photo after I'm done editing in.
    I'm running windows 8.1 and the folders are all onedrive folders. (I have unlimited onedrive storage so I take full advantage of it.) I've always saved them this way, and only started having trouble after updating to Lightroom 6

    The problem with write permissions for the OneDrive folder only shows up in Lightroom 6's export dialogue, that's why it's to irritating. Lightroom 5.7.1 is not having that problem nor does the file explorer. The problem also exists on both of my machines. I will try to check for other problems with the OneDrive troubleshooter though: Running the OneDrive troubleshooter - Windows Help   

  • How do I export HDR photos made on Photoshop CS5 onto a flashdrive so I can use them on a window machine for commercial purposes.  Adobe support claims it is a apple problem not theirs.  PS the other window machine doesn't have Photoshop cs 5 installed?

    Hi, How do I export HDR photos made on a macpro with photoshop cs5 onto a flashdrive so they can be imported correctly into a windows machine that doesn't have photoshop installed on it?  Already exported to a HP flashdrive but they do not even show up on a windows machine. Need that capabillity since this is for commercial printing.  My wife's mac laptop only shows 3/4 of the picture the rest is grayed out.  Adobe support claims it is a Apple problem.  Love the finger pointing and hold me blameless atitude on their part.  Told them creating a picture should be like gas that can be used in anybody's car, just not their Adobe equipped ferrari.  Do I need to convert the file struture so it can be read by the window machine? How would I do that ?  Any comments appreciated. Doug

    I certainly wouldn't expect to read native PS CS5 files with all features intact and supported on a machine that doesn't have CS5 installed. Try saving the files as flattened (no layers) TIFFs before moving them to the flash drive and trying to open them on the Windoze box.

Maybe you are looking for

  • Can I get an educational pack of Premiere Elements to install on students computers to teach video editing?

    Mission/ Vision Statement To provide an opportunity to share with community members digital skills that will enable individuals to conceive, plan and produce music videos and share them on social media sites. In this domain, my three main subject spe

  • Document number not available in BSAD Table even after clearing

    Dear Experts, with the FM posting_interface_start, posting_interface_clearing, posting_interface_end iam able to post the document with clearing using Tcode f-30/fb05 and can see the document number getting generated and when i see the BSAD table wit

  • Delete photo in album

    When I try to delete a photo by normal method the yellow frame switches to next photo in the Album but the photo to be deleted remains. When I click on the newly selected photo, then the correct photo, to its left, is deleted.  This is in Iphoto 11 o

  • "Row modification counter" in T-code db02

    Hi experts, In Transaction code DB02, when you enter the name of a table in Detailed analysis, you can see some indicators like Reserved (KB), Data size (KB), Total rows, Row modification counter... Do you know what does the indicator "Row modificati

  • Suggestion for future update

    Assuming I can upgrade to ST 2.0 at some point without losing my custom icons... I just read about a tool called Speed Launch that essentially you give it the programs you need to open all at once, and then one click opens them all. I have several ta