Change image background of a shape with applescript in keynote

Hi,
I want to create an applescript that allow to change background fill of a shape in keynote.
I saw background fill type is r/o ( I guess read only ), but can we change only the image file if the shape is in image fill state with already an image.
I work with an mac book air, mac os mavericks, keynote 6.
Thanks.

In your assignment statement you should remove the "string(....)" XPATH method. So if you use
xpath(BookMessage,"/*[local-name()='BookMessage' and namespace-uri()='http://UntypeMessage.Book']/@*[local-name()='Author' and namespace-uri()='']")=AuthorName;
it will work. Now the Left-Hand-Side of the expression does evaluate to a node set (in this case it would evaluate to an XmlAttribute).
Regards.

Similar Messages

  • How do i change the background display to white with black text. It is white text on blackbackground right now

    Why is my screen display black background with white text?  How can i change back to black text on white background?

    Change it in Settings > General > Accessibility.

  • Changing Image Background

    Hello,
    I have watched more than a dozen videos on changing the image of a background  Each time I try it myself it doesn't work or the edge of the image is rough.  Is this topic considered advanced?  I am just starting on CS5.  Is there any way to reduce the learning curve?

    It really depends on the nature of the images you're working on like what type of foreground subject vs. what type of background you're trying to change. The new selection tools in CS5 are very good - the best yet within Photoshop, but getting the most out of them is not beginner's stuff. I've watched some of the tutorials myself, which helped, but there are too many advanced tricks that make the selection process work seamlessly for most tutorials to begin to cover. I've spent a lot of the last week masking out frizzy hair and can say that a combination of the Quick Selection tool, Refine Selection using Smart Radius, Layer Masks and finally the Layer>Matting>Remove White Fringe command are very effective. Those are the tools. The best way to use them is the advanced part. As far as shortening the learning curve, I don't think there is an effective way to do that. Photoshop and all its tools are a very complex set and it takes time to learn and master. I've been at it for fifteen years now and am learning more every day.

  • Changing which Resolution and Main Monitor With Applescript

    Hi all,
    I am trying to make an applescript to change my monitor settings.
    I have 2 monitors the one I want to be my main one "E2370" and my second one "L2000CN" which I want to mirror the main one.
    My main problem is that I do not know how to change the "Optimize for" combo box settings to E2370 on the event that it is not already set to that.
    What I have so far is:
    tell application "System Preferences"
    reveal anchor "displaysDisplayTab" of pane "com.apple.preference.displays"
    end tell
    tell application "System Events" to tell process "System Preferences" to tell window "E2370"
    try
    click radio button "Arrangement" of tab group 1
    on error
    click radio button "Display" of tab group 1
    --click the first combo box
    end try
    if value of checkbox 1 of tab group 1 = 0 then click checkbox 1 of tab group 1
    do shell script "sleep 0.25"
    click radio button "Display" of tab group 1
    click radio button "Scaled" of radio group 1 of tab group 1
    click radio button "Scaled" of radio group 1 of tab group 1
    select row 3 of table 1 of scroll area 1 of tab group 1
    do shell script "sleep 0.25"
    keystroke (ASCII character 3)
    keystroke (ASCII character 3)
    end tell
    --quit application "System Preferences"
    Thanks in advance.
    Trevor

    What format (codec) is the material being editied?
    Sounds like you are editing a non-native format (something like h.264). If that is the case, convert it to ProRes LT  and try again.
    x

  • Change a divs image background

    Is there any way to change a divs background image in edge animate? The background image is defined by an external css file but at a certain point on the timeline, I want to fade in the new background image. Any ideas?

    It all depends on how you want to set it up.
    If you want the images to auto change you would put the code in the timeline like this:
    http://www.meschrene.puremadnessproductions.net/Samples/Change-Image/Background-Image-Auto .html
    http://www.meschrene.puremadnessproductions.net/Samples/Change-Image/Background-Image-Auto .zip
    If you would like to click on a button to change image try this:
    http://www.meschrene.puremadnessproductions.net/Samples/Change-Image/Background-Image.html
    http://www.meschrene.puremadnessproductions.net/Samples/Change-Image/Background-Image.zip
    If you would like to change image with next and back buttons try this:
    http://www.meschrene.puremadnessproductions.net/Samples/Change-Image/Background-Image-Next .html
    http://www.meschrene.puremadnessproductions.net/Samples/Change-Image/Background-Image-Next .zip

  • Re: Change the image of the image Background panel

    Hi guys,
    I m wondering how can i change the background of the image I had set earlier on as the background of the JPanel using the overriding of paintComponent() method.
    What i need to do is to create a swing component with a changing image background abilities.. can anyone help me with it.. its urgent.. thanks!!!

    Hi.
    Please see code below. I hope it help you.
    Change the image name at the constructor of MainFrame.java and put that image to folder with class files.
    MainFrame.java:
    import javax.swing.*;
    public class MainFrame extends JFrame {
      public MainFrame () {
        ChangeBGImage panel = new ChangeBGImage();
        panel.setImage("ukr.jpg");
        getContentPane().add(panel);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      public static void main (String[] args) {
        MainFrame frame = new MainFrame();
        frame.setSize(400, 300);
        frame.setVisible(true);
    }ChangeBGImage.java:
    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.*;
    public class ChangeBGImage extends JPanel {
      Image image;
      public ChangeBGImage (Image image) {
        this.image = image;
      public ChangeBGImage () {
        image = null;
      public void paintComponent(Graphics g) {
        super.paintComponent(g);
        if (image != null) {
          Rectangle rectFull = new Rectangle(0, 0, getSize().width, getSize().height);
          Graphics2D g2d = (Graphics2D)g;
          BufferedImage buffImg = new BufferedImage(image.getWidth(this), image.getHeight(this), BufferedImage.TYPE_INT_RGB);
          Graphics2D g2d2 = buffImg.createGraphics();
          g2d2.drawImage(image, 0, 0, this);
          TexturePaint imagePaint = new TexturePaint(buffImg, new Rectangle(0, 0, image.getWidth(this), image.getHeight(this)));
          g2d.setPaint(imagePaint);
          g2d.fill(rectFull);
      public void setImage(String imageURL) {
        MediaTracker mt = new MediaTracker(this);
        image = Toolkit.getDefaultToolkit().getImage(imageURL);
        mt.addImage(image, 0);
        try {
          mt.waitForID(0);
        } catch (InterruptedException ex) {
          ex.printStackTrace();
      public void setImage (Image newImage) {
        image = newImage;
    Sincerely,
    Victor Letunovsky
    AlarIT programmer
    http://www.AlarIT.com

  • How do I create a mouseover hotspot that changes the background color?

    I'm creating an image gallery and want to know how to allow the viewer to change the background of the page with a mouseover hotspot.
    How would I go about doing this?
    Thanks in advance for any help.

    I'm not entirely sure I understand your question, but the following CSS technique changes a background image on hover.
    CSS Sprites:
    http://alt-web.com/DEMOS/CSS-Sprites.shtml
    This changes foreground images on hover:
    http://alt-web.com/DEMOS/CSS-Disjointed-Image-Rollover.shtml
    And this changes images and opacity on hover:
    http://alt-web.com/DEMOS/CSS-Disjointed-Image-Gallery.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • How to change the background of a Jpanel

    All I want to do is change the background color of my JPanel. I have looked at some of the java tutorials, and I am still having a really hard time figuring it out. Is there a simple way to just change the background color, without messing with overriding the paintComponent() method?

    All I want to do is change the background color of my
    JPanel. I have looked at some of the java tutorials,
    and I am still having a really hard time figuring it
    out. Is there a simple way to just change the
    background color, without messing with overriding the
    paintComponent() method?Simple enough?
    myPanel.setBackground(Color.BLUE);Edit: You'd better learn how to use and search through the API:
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JPanel.html
    null

  • Changing template background from a powerpoint presentation in Keynote?

    Is simple to change the background template from a powerpoint presentation in Keynote?
    In powerpoint it is very simple but I need to know if it is also in keynote and how, of course without erase the data from the presentation.  I have many powerpoint, excel and word files from MsOffice 07' and I need to know if I can change to iWorks without problems and if it will take me to much time to do it.

    It could not be simpler;   click on Themes in the tool bar and select a theme:

  • HT200285 I want to change my wallpaper to an image that was available before I upgraded to IOS 8.1.3 - a close-up image of long reedy  grasses with hazy light in the background. Greyish hues. Where can find the image & how do I get it back on my phone?

    I want to change my wallpaper to an image that was available
    before I upgraded to IOS 8.1.3 - a close-up image of long reedy  grasses with hazy light in the background.
    Greyish hues. Where can find the image & how do I get it back on my phone?

    I want to change my wallpaper to an image that was available
    before I upgraded to IOS 8.1.3 - a close-up image of long reedy  grasses with hazy light in the background.
    Greyish hues. Where can find the image & how do I get it back on my phone?

  • How to change desktop background in AppleScript in 10.7?

    I'm just now upgrading from 10.6 to 10.7, and I'm having trouble with a script that I wrote that worked fine under 10.6.  In part, it executes the following command:
         osascript -e "tell application \"Finder\" to set destop picture to POSIX file \"<path>\""
    to change the desktop background image to one of two different files based on other conditions.
    In 10.7, this command completes with no error code, but it only changes the background of one of my four desktops.  Is there a way to programmatically change the background image of all of my desktops simultaneously?  Failing that, is there a way to a) find out how many desktops I have and b) loop through them, setting each of their backgrounds in turn?
    I did search the web and found the following suggestion:
         osascript -e "tell application \"System Events\" to set picture of every desktop to \"<path>\""
    Unfortunately, that also changes only the current desktop's picture.
    The larger script is in Perl, so I'd prefer a technology that works well with that language, but if I have to change to a different scripting language, that's not the end of the world.
    Thanks much for any suggestions!
    Richard

    Actually, “repeat with k from 18 to (18 + N - 1)” was not a good idea, since it works only with N < 5, as I discovered after posting the script.
    So here's an improved version of the previous script that should work with any number of desktops:
    set theFile to POSIX file "/Library/Desktop Pictures/Isles.jpg" -- just an example
    -- Find out how many desktops you have:
    tell application "System Preferences"
        reveal anchor "shortcutsTab" of pane id "com.apple.preference.keyboard"
        tell application "System Events" to tell window "Keyboard" of process "System Preferences"
            set N to count (UI elements of rows of outline 1 of scroll area 2 of splitter group 1 of tab group 1 whose name begins with "Switch to Desktop")
        end tell
        quit
    end tell
    -- Loop through the desktops, setting each of their backgrounds in turn:
    tell application "System Events" to key code 18 using {control down} -- Desktop 1
    tell application "Finder" to set desktop picture to theFile
    repeat (N - 1) times
        delay 1
        tell application "System Events" to key code 124 using {control down} -- ⌘→
        delay 1
        tell application "Finder" to set desktop picture to theFile
    end repeat

  • An applescript to change the background color for all finder windows

    I'll start off by telling you what I am trying to achieve, then show you what I've tried.
    I have a macbook with several HDD's attached. what I want is for each of those hdd to have a specific finder window background color. so no matter where I am in that hdd the background color will always be the same. so for instance if I set the background color of hdd 2 to blue then as long as I see a blue background I know that I'm within hdd 2.
    I've tried setting up an applescript to do this but can only get it to change the open finder window, and none of the subfolders have their backgrounds changed.
    here is what I have so far:
    tell application "Finder"
    tell the icon view options of the front Finder window
    set the background color to {52942, 54484, 31097}
    end tell
    end tell
    so how do I get this to apply to all subfolders without opening each one and running the script.
    thanks in advance for any and all help with this

    According to this article:
    http://docs.info.apple.com/article.html?path=AppleScript/2.1/en/as2039.html
    it seems that the various options can only be set while the window is open and in icon view.
    Rather than manually opening the window of every single folder on the hard drive, it should be possible to write a script to open every folder in sequence, make sure it is in icon view, change its background, then close its window. I have never been any good at the "actions within actions" procedure needed for folders within folders, so maybe someone else with the necessary knowledge and experience might be able to assist in this regard. Such a script would probably take a few minutes to complete while it ran through "every folder of every folder", but it sure would be quicker to have the process automated than to do it by hand - computers are really good at repetitive tasks (as long as the instructions are accurate, of course!).
    On the other hand, you might like to try the following:
    open a few windows in icon view, choose Show View Options in the View menu (I'm in System 10.4), click the radio button All Windows, click the Color radio button under Background, then choose your color. It might achieve what you are trying to do.

  • How do I change the Background Color of a Shape in iWeb?

    I am adding a comment bubble from the Shape menu for one of my photos. Everytime I try to change the background color of the bubble I end up changing the entire background color of the Web Page.
    How do I only change the background color of the shape?
    G5   Mac OS X (10.4.4)  

    Hi Kyn,
    Perhaps you (or anyone else!) can help me with this too: is it possible to change the color of the border styles that you choose for the thumbnails on a photo page? There is no "fill" option in the Graphic pane of the inspector when I select one of them. I love some of the styles but would like to be able to match the color better to my pages. See here for an example:
    http://web.mac.com/mousie/iWeb/Site/Recount.html
    The twirly border is a little too orange for my taste.
    Thanks in advance.

  • Create one button to change the background image

    Hello,
    can anyone help me create a button for a SPA525g phone which changes the background image of the phone which is now :
    <BMP_Picture_Download_URL group="User/Screen">http://192.168.2.2:5000/provisioning/logo/cisco525g.jpg</BMP_Picture_Download_URL>
    The button should also call to *1232
    So with button IN the image should change to ciscoOUT.jpg and call to *1232
    And button OUT should change the image to ciscoIN.jpg and call to *1231
    I now have already
    <PSK_1 group="Phone/Programmable_Softkeys">fnc=sd;ext=*[email protected];vid=20;nme=IN</PSK_1>
    I also tried to do :
    <PSK_3 group="Phone/Programmable_Softkeys">fnc=xml;url=http://192.168.2.2:5000/provisioning/logo/cisco_logo.xml;nme=scrp1</PSK_3>
    where cisco_logo.xml contains :
    <?xml version="1.0" encoding="utf-8"?>
    <CiscoIPPhoneImageFile>
      <Title>Image1</Title>
      <Prompt>Prompt1</Prompt>
      <LocationX>0</LocationX>
      <LocationY>0</LocationY>
      <URL>http://192.168.2.2:5000/provisioning/logo/cisco50xg.bmp</URL>
    </CiscoIPPhoneImageFile>
    but then nothing happens ? I can see the image and choose update , but that is it.
    Plus I want to combine the two option.

    anyone who can help me out here ??

  • Dynamic Background - Changing images

    Hi,
    I'm new to Dreamweaver and also web design. I saw a site with a nice dynamic background that changes images. I was wondering what sort of function would I be looking to code to get the same sort of result? The website I saw was https://www.bizpora.com
    Thanks in Advance

    That site is using a JQuery supersized slideshow. You may download here:
    http://buildinternet.com/project/supersized/

Maybe you are looking for

  • How can i check for posted but not yet commited changes in a form

    Dears I make changes programmatically in a form then i post it using (Post built in). If the user exits the form, i make check for any changes in the form to commit it using the system variable :system.form_status Unfortunately the value of this syst

  • IPhone 5s call signal strength is 3 bars and my calls are breaking up?

    I switched from an iPhone 4s to an iPhone 5s and now my iPhone signal strength is 3 bars and my calls are breaking up? what gives? I live on top of a hill in a major metropolitan city and my carrier has always been Verizon and my call signal strength

  • Save As Script with predefined path and file name

    Hello, Livecycle version: 8.2.1.4029.1.523496 The aim of the script I have is to save the livecycle form to a predefined directory and using the values of a text field in the file name. The script is placed in an exit event on a field using javascrip

  • In File Dialog, when click Cancel button, it prompts error and VI exits

    Does anyone can give me an idea on how to solve this problem? When the user click on the Cancel button in the File Dialog box, it prompts out error and says "Operation canceled by user". How can I handle this error? I got the same error when I click

  • Trying to install ipod content on new computer!!

    I am trying to put my library from my 5th gen 30gb ipod to a new computer. The new computer has Vista as the OS and I have configured the ipod to be used as an external storage device. I have the latest version of itunes installed but when I connect