Is there a way to accomplish a dynamic image insertion linkage?

I have a cell in my spreadsheet where I have inserted a graphic, let's say .../GRAPHICS/PICTURE-1.JPG for reference.
I would like the image displayed in Numbers to change dynamically by virtue of my changing the contents of .../GRAPHICS/PICTURE-1.JPG (through renaming, of course).
What I really want is a dynamic link, rather than having to manually reinsert the image. (No problem for PICTURE-1.JPG, but more than a minor annoyance when it gets to, say, PICTURE-23.JPG, right?)
Thanks for any suggestions.
-- Ranebo

Hello
I hope that the given script will fit your needs.
I took care to comment many instructions.
--(SCRIPT exchangePictures.app]
Save the script as a Bundle Application
In the bundle, create a folder whose name is the one of the iWork's document to change (stripped of its name extension)
In this folder, store the "new" pictures in a subfolder named "New".
CAUTION: as you wrote, YOU MUST check that new files dimensions are the same that the old ones.
Drag and drop the icon of an iWork document on the script's icon.
The "old" embedded files having a "replacement" in the folder "New" are duplicated in the folder "Old"
and the replacement file is copied in the document's package.
Yvan KOENIG (28 mars 2008)
property permitted : {"com.apple.iwork.keynote.keynote", "com.apple.iwork.numbers.numbers", "com.apple.iwork.pages.pages"}
property nouveau : "New"
property ancien : "Old"
-- ==================
(* lignes exécutées si on double clique l'icône du script
• lines executed if on double click the script's icon *)
on run
tell application "System Events" to set _ to choose file of type permitted
my traiteFichier(_)
end run
-- ==================
(* lignes exécutées si on glisse-dépose l'icône d'un document iWork sur l'icône du script
• lines executed if we drag&drop the icon of an iWork document on the script's icon *)
on open (sel)
local theFile, ti
set theFile to first item of sel
tell application "System Events" to set ti to type identifier of theFile
if ti is in permitted then my traiteFichier(theFile) (*
if the dropped document is not a Pages or a Numbers one, exit. *)
end open
-- ==================
on traiteFichier(theDoc) (*
theDoc is an iWork's document *)
set theDoc to theDoc as Unicode text
tell application "System Events" to tell disk item theDoc
set leNom to name (* document's name *)
set nomExt to name extension (* document's name extension *)
set liste to files (* the files stored in the document's package *)
end tell
set nomDossierDoc to (text 1 thru -(2 + (length of nomExt)) of leNom) & ":" (*
the document's name minus the name extension *)
tell application "System Events" to set myPath to (path to me) as Unicode text (*
grab the script's pathname *)
if myPath ends with "Script Editor.app:" then return (* The script can't be used from the Script Editor *)
set DossierDoc to myPath & nomDossierDoc
set DossierDocNew to DossierDoc & nouveau & ":"
tell application "System Events"
set dossierExiste to exists folder DossierDoc
set newExiste to exists folder DossierDocNew
end tell
if (dossierExiste is true) and (newExiste is true) then (*
the required folders are available *)
set DossierDocOld to DossierDoc & ancien & ":"
tell application "System Events"
if not (exists folder DossierDocOld) then make new folder at end of folder DossierDoc with properties {name:ancien}
end tell (*
now we are sure that the folder DossierDocOld exists *)
repeat with f in liste (*
with every files stored in the documents's package *)
set f to f as alias
tell application "Finder" (*
We must use Finder because at this time, System Events is unable to duplicate *)
set nf to name of f
if exists file (DossierDocNew & nf) then (*
here we are sure that we have a replacement file *)
try
duplicate f to folder DossierDocOld with replacing (*
stores a duplicate of the original file *)
end try
try
duplicate file (DossierDocNew & nf) to (theDoc as alias) with replacing (*
put the new file in the document's package *)
end try
end if -- exists file…
end tell -- to Finder
end repeat
end if -- dossierExiste and newExiste
end traiteFichier
--[/SCRIPT]
Yvan KOENIG (from FRANCE vendredi 28 mars 2008 19:51:15)

Similar Messages

  • Is there a way to evaluate a dynamic string?

    Is there a way to evaluate a dynamic string?
    The first example is static and does what I want.
    The second example is dynamic and shows the problem I am
    having.
    Thank you in advance.

    wolfv wrote:
    > Is there a way to evaluate a dynamic string?
    This can be done, it involves the proper nesting of the DE()
    'Delay
    Evaluate' and Evaluate() functions. IIRC it would be
    <cfoutput...>#Evaluate(DE(str))#</cfoutput>.
    Another way to handle this type of functionality is to write
    out the
    dynamic CFML into a file, then include that file for
    processing.
    As an aside, this often turns out to be much more problematic
    then the
    perceived benefits.

  • Is there a way to create a TINY image for B2G, similar to TINY_ANDROID ?

    Hi, is there a way to create a TINY image from Firefox OS similar to that of TINY ANDROID image which is used for Kernel Development. Android gives an option to create with the flag BUILD_TINY_ANDROID, just wanted to know if there is anything similar in Firefox OS.
    If there is no support from B2G, can we still create one?
    Any suggestions would be very helpful.
    Thanks

    I'm not sure that anybody here would know the answer to this. I'd suggest asking in #b2g on irc.mozilla.org. In case you don't have an IRC client, here's a web-based one: https://kiwiirc.com/client/irc.mozilla.org/#b2g . A lot of the b2g developers tend to hang out in there, and if anybody knows, they would.

  • HT201335 Hi.  I have an apple tv and am able to mirror the image on my ipad to my tv, however it doesn't fill the full screen.  Is there a way to get a full image on my 32" Tv.  Thanks a lot for your help

    HI.I have an apple TV and am able to mirror the image on my ipad onto the screen.  However, it doesn't fill the full 32" screen.  Is there some way to project a bigger image onto the Tv.  Thanks for your help

    Welcome to the Apple Community.
    Mirroring won't fill the TV screen. The iPad has an aspect ratio of 4:3 and the iPhone 4S or prior an aspect ratio of 3:2, neither of these will fit exactly into a TV screen which as an aspect ratio of 16:9. The Apple TV will not zoom the mirrored image, because it may well cut off information which is situated at the top or bottom of the screen.
    You may wish to try each of the settings in ‘Settings > Audio & Video > Adjust for AirPlay overscan’ for the best setting that suits you.

  • Is there a way to determine which rows are inserted in JDT1 table by the system automatically?

    Hi,
    Is there a way to determine which rows are inserted in JDT1 table by the system automatically? Example, many GLs which are mapped in GL Account Determination, like Foreign Exchange Gain / Loss, Rounding Account, etc. are inserted by the system automatically in the Journal Entry on various scenarios, like during Incoming Payment, etc.
    Which SQL query can give me those rows? Basically the WHERE condition should be based on which column or multiple columns in JDT1 table?
    Thanks.

    Hi Rajesh,
    I'm not entirely sure but I think the TransId is the same in the header that belongs to the transaction.
    OINV.TransId = JDT1.TransId
    Best regards,
    Pedro Magueija

  • Is there a way to quick import single image while not leaving current import/collection?

    I often am working on large import from photo shoot in previous hours or day and don't want to leave the import or collection to edit anything else, when sure enough, I am asked to handle an emergency edit or tune up of a single or small number of images that would only take a few minutes.  I don't want to do this and then have to reload my current large import/collection as I am totally focused on it and it would interrupt my workflow, etc.  I am missing something or is there no way to load a quick image for touch up without having to leave your current large project?  If there is thanks for pointing out, if there is not, could we have a "quick edit" or "spot import" where the single image could be worked on  via an "open file" or "quick single image import" from file menu that once completed and exported would leave us right where we left off in our large import editing job?  thanks!

    If you are using AlbumArt widget you can do this with the widget interface.

  • Is there a way to create a disk image so I don't have to take the disk along to play a game when I go on a trip?

    I'm going to a trip soon. I play a game (Sims) that requires that the disk is in the computer in order for the game to run.  Is there a way to use a disk image so I don't have to bring the actual disk along on my trip? Thanks.

    Maybe. Mount the disc and launch Disk Utility. Select the disc, and choose File > New > Disk Image from Sims. In the Save dialog that opens, choose "CD/DVD Master" as the format. Save the image. Eject the Sims disc, then double-click the image file you just saved. It should mount. Try the game.
    DO NOT distribute the image file to anyone else, as that would be copyright infringement.

  • Is there some way to create a mirror image backup of iPhone and iPad ?

    Is there some way to create a mirror image backup of iPhone and iPad ? At this time our company has over 250 devices that are constantly being upgraded and passed down the line. it would speed things up considerably if there was a way to mirror the old device and then restore it on the new Phone or iPad. I don't care about any of the other features in iTunes, i just need something to speed up the process without having to walk them thru reintering their passwords, redownloadeing all the apps that didn't transfer ect.

    You would need to tell each user to make sure they backup their devices either thru itunes or icloud.
    With a company like yours, you should suggest backing up to icloud.
    IOS backup http://support.apple.com/kb/HT1766  then when the user gets a new phone, you or they can just restore from their icloud.
    The only hard part would be if the user has music (non purchased from itunes) which they would need to sync to itunes to get back on their phone.
    there is no easy process for this.  I'm in the same boat as you but way fewer people to deal with.

  • Are there any way to recover the deleted images form iPhone 4

    hello guy's
    are there any way to recover the deleted images form iPhone 4
    note : i haven't make any copy of the photo in my pc so i relay need for them
    plz help

    The Camera Roll is for temporary storage as with any other digital camera. Although photos in the Camera Roll are included with your iPhone's backup which is updated by iTunes as the first step during the iTunes sync process, photos in the Camera Roll can and should be imported by your computer ASAP. If you didn't sync your iPhone with iTunes since these photos were captured by your iPhone and the photos in the Camera Roll weren't imported by your computer, the photos are gone.
    Depending on how wealthy you are, you can contact a data recovery service to see if they can recover deleted photos from an iPhone's flash drive, but you will pay an arm and a leg for this. Such a data recovery service is not cheap and with no guarantee the data will be recoverable.

  • Are there any way to recover the deleted images form iPhone4

    hello guy's
    are there any way to recover the deleted images form iPhone 4
    note : i haven't make any copy of the photo in my pc so i relay need for them
    plz help

    What happened that you lost them?
    If you have synced recently you could restore the iPhone and it will restore the camera roll to it's state at the time of that sync.

  • Is there any way to read to dynamic configuration using abap mappings?

    Hi,
      Is there any way to read dynamic configuration suppouse filename using abap mappings, I mean using abap code?
    Appreciate for your response.
    Regards,
    Daniel.LA

    Daniel,
    Yes it's possible. Please refer Henrique Pinto's reply in this thread -Re: Abap mapping and variable substitution in File adapter
    raj.

  • Is there a way to create a dynamic random playlist?

    I am upgrading (downgrading?) from a 60gb 5G iPod to a Touch. Since the Touch has less space on it than my former iPod, I would like to know if there is a way to have it filled with different random songs each time it is docked.
    I know how to create a playlist that consists of random songs, but I want this list to change periodically, so that I have a different variety of songs available on the Touch.
    Is there a way to do this?

    You need to make sure that the smart playlist has a criterion that will vary with time, such as Playcount is not 0, or Last played is not within the last x days". You also need to make sure that live updating is checked.
    You may need to play around with it a little to get the mix you like.

  • Is there a way to create a CSS image gallery with caption?

    Hi everyone,
    Ive been using the disjoint rollover, but I only have one
    thing that I want to add to it—a caption right underneath an
    image.
    Besides using that Project Seven plug-in, is there a way to
    create an image gallery without using layers? Or is layers the only
    way to do it? All I want (words of doom, huh?) is a thumbnail to be
    able to switch and image and add a caption to it. Can anyone point
    me in the right direction? Or is that Project Seven plug-in deal my
    best bet? What about Set Text of Layer in DW.
    Oh yeah, Im still using DW with CSS sprinkled in..any help?
    Thanks in advance.
    -C

    > Besides using that Project Seven plug-in, is there a way
    to create an
    > image
    > gallery without using layers?
    Of course.
    > What about Set Text of Layer in DW.
    That would do it, and it's not necessary that the layer stay
    a layer after
    you have done it, either. I do this frequently - make a
    layer, apply the
    behavior, and then remove the position:absolute from the div,
    and place it
    where I want it.
    See the demo here -
    http://dreamweaverresources.com/tutorials/settextoflayer.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "psypent81" <[email protected]> wrote in
    message
    news:eus555$lac$[email protected]..
    > Hi everyone,
    >
    > Ive been using the disjoint rollover, but I only have
    one thing that I
    > want to
    > add to it?a caption right underneath an image.
    > Besides using that Project Seven plug-in, is there a way
    to create an
    > image
    > gallery without using layers? Or is layers the only way
    to do it? All I
    > want
    > (words of doom, huh?) is a thumbnail to be able to
    switch and image and
    > add a
    > caption to it. Can anyone point me in the right
    direction? Or is that
    > Project
    > Seven plug-in deal my best bet? What about Set Text of
    Layer in DW.
    >
    > Oh yeah, Im still using DW with CSS sprinkled in..any
    help?
    >
    > Thanks in advance.
    >
    > -C
    >

  • There any way to open an 'offline' image if the originals are gone?

    I recently had pictures, 1827 of them, somehow get deleted off my computer, therefore it resulted in me not being able to do anything with them in Lightroom since they are now considered 'offline'... is there any way a person can somehow get these images off the lightroom program, so I can save them & still have access to them?

    First, are you really sure that your pictures ahve been deleted? You can only be sure when a thorough search in your OS (Mac Finder / Win Explorer) does not find them.
    The fact that LR sows them greyed-out and with question marks does not necessarily mean that the images are deleted.
    That LR is not able to find the images can have several reasons: 
    (a) worst case, the images are not on the hard drive at all.
    (b) the images are on the hard drive but in a different location. This happens when you move images / folders outside of LR.
    (c) images and/or folders have been renamed outside of LR.
    (d) a combination of (b) and (c).
    In case your images are truely deleted you can do a <Print to JPG file>. In the print Module on the right side in the <Print Job> panel besides the words <Print To> click on the small triangles besides <Printer> and select <Print to JPG file> that would save your image as a small jpg.

  • Is there a way to replace re-sized images?

    I have several images (640 x 480) that I have placed into a PDF. When I use the Object TouchUp Tool, (right-click and choose "Place Image...") they come in WAY too big for the layout, so I scale them down to fit. Now, I need to replace those images with new ones (also 640 x 480).
    1) Is there a way to replace the images, (Right-Click on the image to be replaced > "Place Image...") so that the new images are placed at the same dimensions (and hopefully position) as the scaled old images, instead of having them come in HUGE again and manually scaling them down and re-positioning them?
    2) Or, at least, is there a preference dialog somewhere that I can define a specific dimensions for the images to be imported at, regardless of their resolution outside of acrobat.
    I realize I could create smaller thumbnails and place those in the PDF instead. However, the person who will be responsible for replacing the images isn't very computer savvy, and it would take longer for them to save thumbnails then to just place the image directly into Acrobat and scale them down.

    I want to AVOID scaling the new pictures (and in an ideal world, I'd also like to avoid re-positioning) manually. Example, I have a window sticker PDF for a silver car with 3 pictures in it, a front, rear, and interior. When initially placed into the PDF, the pics (640 x 480)for the car were too big for the layout, so I used the Object TouchUp Tool in Acrobat 8 Pro to scale them down to about 150 px wide and position them correctly. Now, we get a new car in. It's practically the same car, but blue. So, the most efficient way to create a new pdf window sticker for the blue car would be to save a copy of the silver PDF and then just replace the silver pics with blue ones.
    Practically every other graphical Adobe program on the planet has a way to "replace" or "update" raster images. In my Acrobat 8 Pro travels, it doesn't seem there is a way to do this. I can "replace" (overwrite) the old silver pictures by selecting a pic with the Object TouchUp Tool, then right-click "Place Image..." This will stick the new blue photo in the same position as the old one. However, it still imports in at the giant 640x480 size, instead of the scaled-down 150 px wide size. So, I still need to manually scale the new blue photo down.
    Also, I've tried every combination of SHIFT, ALT, CTRL clicking to try to scale the pic from its center. In other words, if I grab the lower-right handle of the pic, the anchor point for the scale is the upper-left corner of the pic... so scaling it like this throws the pic out of position anyway.
    So, if anyone has a way to scale a pic from it's center, instead of the corners, please post it!! Even if I could get a dialog box requiring specific numeric dimensions... that would be preferable to having to re-size and manually nudge and smush the pics around to a rough eyeball location every time I need to make a new window sticker for a car (which is a lot)
    Cheers!

Maybe you are looking for