Image File Name Displayed

Hi, I’m new to Numbers and would like to know how to automate a text feild so when a JPEG is position ed the text field automaticly displays the JPEGs file name. I need this for my invoices because I have to document my work with a JPEG (Graphic Design). Any help out there?

(1) If you inserted a picture out of a table, you may get its filename thru Inspector > Metrics > File Info
(2) If you inserted the picture in a cell, you can't get info from the Inspector.
In both cases there is no way to automatically insert the file name in a cell.
Given that, I quickly wrote a script doing the trick.
--[SCRIPT insertPictureWithName]
Enregistrer le script en tant que Script : insertPictureWithName.scpt
déplacer le fichier ainsi créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
sélectionner la ou les cellules où insérer une image et son titre
menu Scripts > Numbers > insertPictureWithName
Choisir un fichier image dans le dialogue Choose File
Le script ouvre le dossier contenant le fichier sélectionné
copie celui-ci dans le presse-papiers
insère le nom dans la table pointée
colle l'image dans la cellule pointée.
--=====
L'aide du Finder explique:
L'Utilitaire AppleScript permet d'activer le Menu des scripts :
Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case "Afficher le menu des scripts dans la barre de menus".
--=====
Save the script as a Script: insertPictureWithName.scpt
Move the newly created file into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
Select the target cell(s)
menu Scripts > Numbers > insertPictureWithName
Select a picture file in the Choose File dialog
The script opens the folder containing the file
copy it in the clipboard
insert its name in the table
paste the picture in the target cell.
--=====
The Finder's Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the "Show Script Menu in menu bar" checkbox.
--=====
Yvan KOENIG (VALLAURIS, France)
2010/05/23
--=====
on run
GUI scripting must be active
my activateGUIscripting()
Get infos about the target cell(s)
set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
Choose a picture file which may be : Jpeg, Png, Tiff, Pict, Pdf, Bmp, Gif
set thePict to choose file of type {"public.jpeg", "public.png", "public.tiff", "com.apple.pict", "com.adobe.pdf", "com.microsoft.bmp", "com.compuserve.gif"} without invisibles
tell application "Finder"
set PictName to name of thePict -- grab the picture's name
open (container of thePict) -- open the folder containing the picture
select thePict -- select the picture
end tell
my raccourci("Finder", "c", "c") -- copy to the clipboard
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
Define the coordinates of the cell to store the picture's name
if (not colNum1 = colNum2) or (not rowNum1 = rowNum2) then
set rr to rowNum2
set cc to colNum2
else
if colNum1 = (count columns) then add column after last column
set rr to rowNum1
set cc to colNum1 + 1
end if
Insert the picture's name
set value of cell rr of column cc to PictName
set selection range to range (name of cell rowNum1 of column colNum1)
end tell
my raccourci("Numbers", "v", "c") (* Paste the picture *)
end run
--=====
set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
on getSelParams()
local r_Name, t_Name, s_Name, d_Name, col_Num1, row_Num1, col_Num2, row_Num2
set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
if r_Name is missing value then
if my parleAnglais() then
error "No selected cells"
else
error "Il n'y a pas de cellule sélectionnée !"
end if
end if
set two_Names to my decoupe(r_Name, ":")
set {row_Num1, col_Num1} to my decipher(item 1 of two_Names, d_Name, s_Name, t_Name)
if item 2 of two_Names = item 1 of two_Names then
set {row_Num2, col_Num2} to {row_Num1, col_Num1}
else
set {row_Num2, col_Num2} to my decipher(item 2 of two_Names, d_Name, s_Name, t_Name)
end if
return {d_Name, s_Name, t_Name, r_Name, row_Num1, col_Num1, row_Num2, col_Num2}
end getSelParams
--=====
set {rowNumber, columnNumber} to my decipher(cellRef,docName,sheetName,tableName)
apply to named row or named column !
on decipher(n, d, s, t)
tell application "Numbers" to tell document d to tell sheet s to tell table t to return {address of row of cell n, address of column of cell n}
end decipher
--=====
set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
on getSelection()
local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
tell application "Numbers" to tell document 1
repeat with i from 1 to the count of sheets
tell sheet i
set x to the count of tables
if x > 0 then
repeat with y from 1 to x
try
(selection range of table y) as text
on error errMsg number errNum
set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
return {theDoc, theSheet, theTable, theRange}
end try
end repeat -- y
end if -- x>0
end tell -- sheet
end repeat -- i
end tell -- document
return {missing value, missing value, missing value, missing value}
end getSelection
--=====
on parleAnglais()
local z
try
tell application "Numbers" to set z to localized string "Cancel"
on error
set z to "Cancel"
end try
return (z is not "Annuler")
end parleAnglais
--=====
on decoupe(t, d)
local l
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to ""
return l
end decoupe
--=====
on activateGUIscripting()
tell application "System Events"
if not (UI elements enabled) then set (UI elements enabled) to true (* to be sure than GUI scripting will be active *)
end tell
end activateGUIscripting
--=====
==== Uses GUIscripting ====
This handler may be used to 'type' text, invisible characters if the third parameter is an empty string.
It may be used to 'type' keyboard raccourcis if the third parameter describe the required modifier keys.
I changed its name « shortcut » to « raccourci » to get rid of a name conflict in Smile.
on raccourci(a, t, d)
local k
tell application a to activate
tell application "System Events" to tell application process a
set frontmost to true
try
t * 1
if d is "" then
key code t
else if d is "c" then
key code t using {command down}
else if d is "a" then
key code t using {option down}
else if d is "k" then
key code t using {control down}
else if d is "s" then
key code t using {shift down}
else if d is in {"ac", "ca"} then
key code t using {command down, option down}
else if d is in {"as", "sa"} then
key code t using {shift down, option down}
else if d is in {"sc", "cs"} then
key code t using {command down, shift down}
else if d is in {"kc", "ck"} then
key code t using {command down, control down}
else if d is in {"ks", "sk"} then
key code t using {shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "k" then
key code t using {command down, shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "a" then
key code t using {command down, shift down, option down}
end if
on error
repeat with k in t
if d is "" then
keystroke (k as text)
else if d is "c" then
keystroke (k as text) using {command down}
else if d is "a" then
keystroke k using {option down}
else if d is "k" then
keystroke (k as text) using {control down}
else if d is "s" then
keystroke k using {shift down}
else if d is in {"ac", "ca"} then
keystroke (k as text) using {command down, option down}
else if d is in {"as", "sa"} then
keystroke (k as text) using {shift down, option down}
else if d is in {"sc", "cs"} then
keystroke (k as text) using {command down, shift down}
else if d is in {"kc", "ck"} then
keystroke (k as text) using {command down, control down}
else if d is in {"ks", "sk"} then
keystroke (k as text) using {shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "k" then
keystroke (k as text) using {command down, shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "a" then
keystroke (k as text) using {command down, shift down, option down}
end if
end repeat
end try
end tell
end raccourci
--=====
--[/SCRIPT]
Yvan KOENIG (VALLAURIS, France) dimanche 23 mai 2010 11:29:06

Similar Messages

  • How do I call image file names from MySQL & display the image?

    Hello everyone,
    I have image file names (not the full URL) stored in a MySQL database. The MySQL database is part of MAMP 1.7 and I am using Dreamweaver CS3 on a Mac Book Pro.
    I would like to create a catalog page using thumbnails, and PayPal buttons displayed within a table, in rows. With the image centered and the PayPal button directly underneath the image.
    How do I use PHP to call the thumbnail images as an image not the file name, to be displayed in the table?
    Thanks in advance.

    slam38 wrote:
    How do I use PHP to call the thumbnail images as an image not the file name, to be displayed in the table?
    Open the Insert Image dialog box in the normal way, and navigate to the folder that contains the images. Then copy to your clipboard the value in the URL field, and click the Data Sources button. The following screenshot was taken in the Windows version, but the only difference is that Data Sources is a radio button at the top of the dialog box in Windows. It's a button at the bottom in the Mac:
    After selecting Data Sources, select the image field from the approriate recordset. Then put your cursor in the URL field and paste in the path that you copied to your clipboard earlier.

  • RH8 - Image File Names

    Greetings,
    In a generated project, created in the RH8, when the user hovers over an image, the file name displays. I checked the image properties and Screen Tip text field is empty.
    How can I prevent the image file name from displaying in the generated project?
    Thanks

    Hi there
    When you examine the generated code what do you see? Is there a Title attribute or an Alt attribute? You didn't say what the output type was. Is it WebHelp? If so, did you enable Section 508 options when you generated? (Part of being Section 508 compliant is giving images corresponding names)
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How can I assign image file name from Main() class

    I am trying to create library class which will be accessed and used by different applications (with different image files to be assigned). So, what image file to call should be determined by and in the Main class.
    Here is the Main class
    import org.me.lib.MyJNIWindowClass;
    public class Main {
    public Main() {
    public static void main(String[] args) {
    MyJNIWindowClass mw = new MyJNIWindowClass();
    mw.s = "clock.gif";
    And here is the library class
    package org.me.lib;
    public class MyJNIWindowClass {
    public String s;
    ImageIcon image = new ImageIcon("C:/Documents and Settings/Administrator/Desktop/" + s);
    public MyJNIWindowClass() {
    JLabel jl = new JLabel(image);
    JFrame jf = new JFrame();
    jf.add(jl);
    jf.setVisible(true);
    jf.pack();
    I do understand that when I am making reference from main() method to MyJNIWindowClass() s first initialized to null and that is why clock could not be seen but how can I assign image file name from Main() class for library class without creating reference to Main() from MyJNIWindowClass()? As I said, I want this library class being accessed from different applications (means different Main() classes).
    Thank you.

    Your problem is one of timing. Consider this simple example.
    public class Example {
        public String s;
        private String message = "Hello, " + s;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example();
            ex.s = "world";
            System.out.println(ex.toString());
    }When this code is executed, the following happens in order:
    1. new Example() is executed, causing an object to constructed. In particular:
    2. field s is given value null (since no value is explicitly assigned.
    3. field message is given value "Hello, null"
    4. Back in method main, field s is now given value "world", but that
    doesn't change message.
    5. Finally, "Hello, null" is output.
    The following fixes the above example:
    public class Example {
        private String message;
        public Example(String name) {
            message = "Hello, " + name;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example("world");
            System.out.println(ex.toString());
    }

  • Get image file name

    Hi ALL,
    I want all image file naming like a caption in my source document. Source document contains more than 100 images.
    But i got a script through the forum and tuned for my script. Still, the file naming comes for the Ist page image only.
    From second page onwards the file naming not comes like a caption.
    Trying script:
    //To Get image file name
    var tgt = app.activeDocument.rectangles;
    for (i=0;i<tgt.length;i++){
        myCaption = app.activeDocument.textFrames.add();
        myCaption.textFramePreferences.verticalJustification = VerticalJustification.TOP_ALIGN
        myCaption.contents = tgt[i].graphics[0].itemLink.name
        myCaption.paragraphs[0].justification = Justification.CENTER_ALIGN;
        bnds = tgt[i].visibleBounds;
        myCaption.visibleBounds =
            [bnds[2]+12, bnds[1], bnds[2]+4,bnds[3]];
            //[bnds[0]-6, bnds[1], bnds[0]-1,bnds[3]];
            myCaption.fit(FitOptions.FRAME_TO_CONTENT);
    Thanks in advance
    BEGINNER

    If you use the add() method in conjunction with the document without specifying the page or better the spread, all objects added will end up on the first spread of your document.
    But your testing scenario is also too narrow. You are expecting:
    1. All your graphics are sitting in Rectangle objects (what about Ovals or Polygons?)
    Therefore: All graphics placed in ovals or polygons are left out.
    2. That really ALL rectangles in your document contain graphics
    You are in trouble, if there happen to be empty rectangles on a page. I would suggest to test that with your script. It will give you an error, because there is no graphics[0] for this specific rectangle, where you can draw the "name" for the "itemLink".
    3. That there are no graphics in anchored objects or pasted inside other objects; left alone graphics inside table cells.
    And who can say that thiese three restrictions exist in all documents you want to run this script against?
    So, if you want to get to all image files in the document, why don't you start with the images in the first place?
    Let's see:
    the Document object has an "allGraphics" property.
    Use that as a starting point and you will not missing a single graphic.*
    Iterate through "allGraphics" will get you:
    the "name" of the placed image through its itemLink.name property;
    the container of the graphic, that's the "parent" of the graphic.
    Now you need one other thing:
    the page, or even better(!) the spread where the graphic is located. Imagine a graphic sitting outside of a page.
    If you want to handle thiese, you must know the spread.
    If  writing this script for InDesign CS5 or above, you are in luck. There is a "parentPage" property of the "Graphic" object, you could use for your add() method. For graphics outside of pages this property will be "null".
    And another important thing:
    if a graphic is copy/pasted from e.g. PhotoShop to InDesign, the "itemLink"  property of that graphic is also "null".
    We can handle that in a try/catch scenario…
    //Scope: all graphics on all pages
    //(that includes graphics of anchored objects, active states of MSOs, graphics in table cells as well)
    var tgt = app.activeDocument.allGraphics;
    for(var i=0;i<tgt.length;i++){
        //Narrow the scope to all graphics on pages only:
        if(tgt[i].parentPage != null){
            //What to do with graphics, that are pasted directly from none-InDesign files:
            //the caption will read "Undefined"
            try{
            var myName = tgt[i].itemLink.name;
            }catch(e){var myName = "Undefined"};
            //targets the page of the graphic:
            var myPage = tgt[i].parentPage;
            //adds a text frame to the page of the graphic:
            var myCaption = myPage.textFrames.add();
            myCaption.textFramePreferences.verticalJustification = VerticalJustification.TOP_ALIGN;
            myCaption.contents = myName;
            myCaption.paragraphs[0].justification = Justification.CENTER_ALIGN;
            //Why visible bounds and not geometric bounds?
            var bnds = tgt[i].parent.visibleBounds;
            myCaption.visibleBounds = [bnds[2]+12, bnds[1], bnds[2]+4,bnds[3]];
            myCaption.fit(FitOptions.FRAME_TO_CONTENT);
    *Not exactly true, because it is missing graphics in not-active states of  MultiStateObjects.
    Since MSOs were introduced in InDesign CS5 the DOM documentation left out this fact so far.
    //EDIT: in the first version I had a comment on a different scope. Since  Document Objects have no "graphic" property, I removed that comment. Sorry.
    Uwe
    P.S. And a Happy New Year to all!
    Message was edited by: Laubender

  • Adding image file name and logo to image

    Can you do batch processing of images to automatically insert the image file name, say at the bottom along with a logo, in black font. The logo stays constant but the image deatils will change with each image?
    Can this be done in Lightroom or then the full Photoshop?
    Thanks!

    I've taken the script mentioned above and modified it to the best of my abilities.  Still getting the same error, unfortunately:
    function main(){
    var suffix ="cropped";
    var docPath =Folder("~/Desktop");
    if(!docPath.exists){
       alert(docPath + " does not exist!\n Please create it!");
       return;
    var fileName =activeDocument.name.match(/(.*)\.[^\.]+$/)[1];
    var fileExt =activeDocument.name.toLowerCase().match(/[^\.]+$/).toString();
    var saveFile = new File(docPath +"/"+fileName+suffix+'.'+fileExt);
    switch (fileExt){
       case 'jpeg' : SaveJPEG(saveFile); break;
       default : alert("Unknown filetype please use manual save!"); break;
    if(documents.length) main();
    function SaveJPEG(saveFile, jpegQuality){
    jpgSaveOptions = new JPEGSaveOptions();
    jpgSaveOptions.embedColorProfile = true;
    jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    jpgSaveOptions.matte = MatteType.NONE;
    jpgSaveOptions.quality = jpegQuality; //1-12
    activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE);

  • How do I not show image file name, only url link - Acrobat Pro 9

    Both file name and url ink show when placing cursor over image. I want to only have url link appear.
    And if that's not possible, I want to then change the image file name. Any ideas?

    Use a button field for the link. You will have to add the action or JS code to open the link.

  • Image file names changed on Homepage

    I have found, on several occasion,s that the titles of the images on my homepage have lost their file names and show the filename iPhoto gives it when uploading to Homepage i.e. Image123A123B123C etc Sometimes, it shows OK when viewing the page but not when editing the page.
    All my images are given my job number reference for people to order from so loosing them is a big issue.
    homepage.mac.com/cjbphotography/

    The exif "image file name" is probably only used by some cameras, I don't have anything in there either.
    Instead use "file name" under "other", that is the actual file name of the master file.

  • Help with image file names when using Import Word document feature

    Hello,
    I am using File >> Import >> Word document into an HTML template.  If the Word document contains images, the images are written to the directory specified in my Site Default Image Folder.  Here is my question: As I was teaching myself the Import function, one time the images were automatically named to match the page name.  So for example, if my page is named Create.html, the images would be named Create_image001.jpg, Create_image002.jpg, etc.  I can't remember how I enabled this feature (or maybe I was dreaming) but if anyone knows how to control the name of the images imported from MS Word, please let me know.  I've searched and Googled for hours and can't find a way to control the image file names.
    Thanks in advance,
    Shellie

    I was hoping that this would be fixed in the 10.8.2 upgrade but it has not.  Anyone have any luck?  Earlier today I was trying to write a paper and navigating between 10 pdfs was a nightmare without being able to hover my mouse for the titles like I used to. 

  • Swap Image File Name Wrongly Displays In Internet Explorer

    How can I get the file name to change with the picture, or
    better yet, keep Internet Explorer from showing the file name in
    the first place. This should be running in the background. Viewers
    do not need to know what I have name the files anyway. None of the
    other browsers show this information. My website is:
    http://www.alanwhelpley.com/
    Thank you for any help you can give me.

    Hello again
    Okay, I am at a loss to explain exactly *WHY* RoboHelp is populating the tag with the file name, but I am seeing it on my end as well. I've tried generating with nearly every conceivable option enabled and disabled and it seems to insist on populating the tag with the file name. Go figure.
    I did seem to have come up with a reasonably simple workaround though.
    Use the built in Multi-File Find and replace utility to find all occurrences of alt="" and replace with alt=" ". Note the space between the quotes. It seems that if a space exists in the tag between the quotes that RoboHelp leaves it as is during the generation process.
    I would also strongly encourage you to report the behavior as a bug via the bug report. (link to that is in my sig)
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • File name display

    I could have sworn that I have used a setting in idvd that displays the file name along with the picture in a slideshow. Now I cant find this feature. I'm using idvd 6. Help?
    Chas

    Chas,
    I'm not an iPhoto user, and my comment was based on simple bringing some photos into iDVD from my desktop.
    I just did some experimenting and found that:
    If your images are in an iPhoto album with title and caption information AND IF you bring the images into an iDVD slideshow from the Media>Photos>iPhoto tab, the information IS imported and will show if you have selected to do so by clicking on the Settings button in the slideshow workspace.
    Sorry for the confusion.

  • Changing image file name

    I'm working with dreamweaver 8 for Mac.
    Imagine that you have a html page with more than 200 images, that you have changed many times during the last few years, some have been deleted others have been added. And some are not linked any more.
    At the beginning the pictures were numbered from the top of the page to the bottom of the page in order (picture1, picture2....), now they are messed up (picture13, picture 1....).
    If I rename the images in my local file folder, DW update it on the html page. Unfortunately in the local file folder the pictures are not displayed, I have to open all of them (200 images) on my desktop ! I The result: a big mess. So my question is:
    Is it possible to make a file name change on the html page, and DW update it on the local files folder?
    I hope I've been clear. Thanks for your help.

    What I would do is create a PHP script that places the images in a document, sorted on date.
    If you Google the subject, you will see many examples on how to do this. One such search gave me this http://www.javascriptkit.com/javatutors/externalphp2.shtml
    If you then see an image that you no longer need, you can remove it from the directory. This will leave you with the images that you do need sorted from earliest date to the latest  date.
    Keep this script for the document that you want to show the images on. Future maintenance will consist of removing the unwanted images from the directory and adding new ones. The PHP page will automatically be updated. No worries with file names, as long as you do not have two the same.
    Although I mention PHP, the same goes for all serverside scripts.
    Good luck.
    Gramps

  • How to find original image file names in Reader?

    How do I display the original file names of digital images in Reader? I am using Reader 8. In previous versions I used the "Picture Tasks" button in the menu bar to open various dialog boxs that showed the original file names. I am a photographer and clients often order prints using original camera file names. Currently I have to tediously match images between my image browser and Reader placing them side by side. Would be so helpful to display in Reader the original file names. Help anyone? THanks in advance.

    Command-D provides info on the PDF itself but nothing on the image files' metadata. I create PDF docs inside Php CS4 if this is any help. If there is a way in Reader to display all image files' original file names simultaneously please clue me in.

  • IDCS2 -- Image File Name

    Dear All,
    Please see below code, I am trying to get the image name. But I am not getting it, please see the below code and suggest me.
    tell application "Adobe InDesign CS2"
    set myDoc to front document
    tell myDoc
    set ImgCounter to get count of rectangle
    repeat with i from 1 to ImgCounter
    set ImgName to get file name of image 1 of rectangle i as string
    display dialog ImgName
    end repeat
    end tell
    end tell
    Thanks

    Hi,
    See the below code, I have just finished the code, but I am not getting the report generated.
    Please help me.
    set source_folder to choose folder with prompt "Select folder containing InDesign Documents"
    tell application "Finder" to set item_list to every item of source_folder
    repeat with this_item in item_list
    set doc_kind to get kind of this_item
    if doc_kind contains "Indesign" then
    tell application "Adobe InDesign CS2"
    set user interaction level of script preferences to never interact
    open this_item
    set DocName to the name of document 1
    tell document 1
    set myfontprop to properties of every font
    set Font_List to {}
    repeat with i from 1 to the number of myfontprop
    set this_font_item to item i of myfontprop
    set myfontname to name of this_font_item as string
    set fontstatus to status of this_font_item as string
    set Font_List to Font_List & fontstatus
    end repeat
    if Font_List contains "not available" then
    my error_report(source_folder, DocName)
    -- else
    -- close document 1 saving no
    end if
    try
    set ImgNames to (name of every link whose needed is true and status is link missing)
    if class of ImgNames is not list then set ImgNames to {ImgNames}
    set badImgCounter to count of ImgNames
    repeat with i from 1 to badImgCounter
    my write_Report(DocName, ImgNames, source_folder)
    end repeat
    end try
    end tell
    close document 1 saving no
    end tell
    end if
    end repeat
    on error_report(source_folder, DocName)
    tell application "Finder"
    try
    set error_folder to (source_folder as string) & DocName & "_ErrorFolder" as alias
    on error
    tell application "Finder"
    make new folder at source_folder with properties {name:DocName & "_ErrorFolder"}
    set error_folder to (source_folder as string) & DocName & "_ErrorFolder" as alias
    end tell
    end try
    end tell
    tell application "Adobe InDesign CS2"
    tell document 1
    package to error_folder copying fonts no copying linked graphics no copying profiles no updating graphics no ignore preflight errors no creating report yes including hidden layers no
    -- close saving no
    end tell
    end tell
    tell application "Finder"
    try
    set text_file to (error_folder as string) & "Instruction.txt" as alias
    set the name of text_file to DocName & ".txt"
    end try
    end tell
    end error_report
    on write_Report(DocName, ImgNames, source_folder)
    set The_Report to source_folder & DocName & "Missing Images.txt"
    try
    open for access file the The_Report with write permission
    write ImgNames to file the The_Report starting at eof
    close access file the The_Report
    on error
    close access file the The_Report
    end try
    end write_Report

  • Convert image file names to labels and resizing images according to frame. Possible??

    Hi all,
    I have posted this question hastily in the main mac forum but then i realized it is a scripting question so I repost here.
    Q1: I have a client with 700+ images who has named the images with numbers and the caption:
    eg: 1.II.34. Walking down the road towards the building.tiff
    This is the name of the image file itself
    Is there a way to import the name of the file (possibly without the extension) and place it as a caption under the image without copying and pasting? A script maybe?
    I tried the labelgraphics script. Unfortunately it returned the extension as well. I was given a solution but did not work for me since it deleted everything after the first dot on the name. This was:
    in labelgraphics on line 105, change
    myLabel = myLink.name
    to
    myLabel = myLink.name.split('.')[0]
    So how can we tackle this so it deletes everything after the LAST dot?
    Q2: The image files I am given are all huge tiff files. I use the full 100% of the images but in my document they have to be much smaller . They are usually scaled down to 25-35% of the original file. So I end up with huge, unneeded documents.
    Is there a script that would work together with photoshop maybe?
    It would need to read the frames dimensions the image is in, open the linked file inside photoshop, resize it with a specified interpolation to maybe 110% of the frame's dimensions, set the resolution (if not set) to 300 dpi save the image as a copy (or with a suffix or prefix), leave photoshop open (for the next image to be processed), relink to the new image and go to the next image
    I know it sounds a lot but I was amazed by the issues people handle in this forum and thought I would give it a try
    Thank you in advance
    Michael

    Peter thank you so much. It works like a charm.
    As for Q2, I spent some time doing research and came up with a couple of scripts that sound like they could do the trick.
    a) Image Transform or Rasterize
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1509 022#
    b) Resample Project Images to 100%
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1612 518#
    Still, since I am such an ignorant I do not know which one would be the proper one.
    Any suggestions would be highly appreciated.
    Thank you once more
    Michael

Maybe you are looking for

  • Phone Audio to USB out- how?

    Hey gang- When I'm on the road, my iPhone is plugged into the USB port on my car stereo. This charges the phone and allows me to play iPod content and hear GPS commands over the car audio. Love it! But what I can't do is hear phone audio that way. Wh

  • How to determine ipod generation?

    (In relation to 2nd and 3rd generations) How can you tell what generation an iPod Touch is just by looking at it? Do they actually have the model numbers on the back of them?

  • Hyperlink to internal html-file

    Hello I want to set a link to a web-site wich is not on the www but on my hard-disk. Is this not possible ? Anybody with experiences ? When I open the html-file with Safari, and then copy the adress to the Keynote field, Keynote change the adress int

  • Thread stack size problem

    Hi all, I am having a multithreaded application and the threads are created with 256 KB thread stack size. This application was developed in windows(32 bit) now ported to Solaris 8. The same was failed while running because of stack overflow and then

  • HT4859 If your new iPhone was set up as a new phone my the store instead of downloading from iCloud, how do I now go back and download from iCloud?

    I just purchased a new iPhone5, the clerk set up the phone as a new device instead of restoring from iCloud.  How do I go back and restore now?