How do I make a "file path" field in a spreadsheet?

i need to have a column of file paths of images relating to each entry of data, in order to integrate with a data-driven layout in InDesign. but when i drag a file, it will either display a tiny image of the file (in the case of jpegs) or show the file name only (with other file types). how can i drag and drop files and get the full file path to show up in the data? that is what i need to import into InDesign. help!
thanks

Hello
This script may help:
--(SCRIPT Récupère_Chemin]
---+-+-+-+-
Exécuter ce script ou déposer l'icône d'un fichier
sur son icône (script enregistré en tant qu'application ou progiciel application)
permet de passer dans le presse-papiers
le chemin d'accès complet
Save the script as Application or Application bundle on the desktop.
Drag and drop a file's icon on the script's icon.
You will get the full pathname of the file in the clipboard
so you will be able to paste it where you want.
Yvan KOENIG le 22 mars 2004
remanié le 24 février 2008
-- -+-+-+-+-
property englishMsg : true
property msg99 : "" -- globale
--deux lignes exécutées si on double clique l'icône du script
if englishMsg is true then
set _ to choose file with prompt "Choose a file …"
else
set _ to choose file with prompt "Choisir un fichier …"
end if
open (_ as list)
on open sel -- sel contient une liste d'alias des éléments
--qu'on a déposés sur l'icône du script (la sélection)
if msg99 is "" then my prepareMessages()
TraiteLeFichier(item 1 in sel)
end open -- fin 2
on TraiteLeFichier(zefile)
try
set leChemin to zefile as text
set the clipboard to leChemin
on error MsgErr number NroErr
if NroErr is not -128 then
beep 2
tell application (path to frontmost application as string) to ¬
display dialog "" & NroErr & " : " & MsgErr with icon 0 ¬
buttons {msg99} giving up after 20
end if
return
end try
end TraiteLeFichier
on prepareMessages()
if englishMsg is true then
set msg99 to "Oops"
else
set msg99 to " Vu "
end if
end prepareMessages
--[/SCRIPT]
Yvan KOENIG (from FRANCE dimanche 24 février 2008 12:53:31)

Similar Messages

  • How do I make a variable path in AppleScript?

    I'm mass distributing an application, and for the next update I want to add customization. My application currently make a folder in the "Documents" folder. The folder is called "MCL_CONFIG". What I need to do is make a unicode text file in "MCL_CONFIG". Since it's going to be used on many different computers the path to where I'm making the new file has to change depending on the user. How can I make a variable path to a non-directory? Here's the section of my code with the problem:
    tell application "Finder"
        if folder MCLConfig exists then
        else
            display dialog "Welcome to Mc Launcher! You will only recieve this message once, unless you delete the MCL_CONFIG folder." buttons {"Ok"} default button 1
            make new folder at New_User with properties {name:"MCL_CONFIG"}
        end if
    end tell
    It's not shown but I set the variable MCLCONFIG to (path to documents folder from user domain) & "MCL_CONFIG" as text.
    As a side note how do I make the code look like it does in applescript, here?

    You can do something like:
    set supportFolder to ((path to application support from user domain) as text)
    set appName to "My Spiffy App"
    set subFolder to "MCL_CONFIG"
    tell application "Finder" -- add application support folders if needed
      if not (exists folder (supportFolder & appName)) then
        make new folder at folder supportFolder with properties {name:appName}
        make new folder at result with properties {name:subFolder}
      end if
    end tell
    Edit: it is recommended that the folder in Application Support be named with your application's bundle identifier, but most just use the application name.

  • How do you  make a file private ?

    I've uploaded a file to Adobe cloud to allow others to see it. If I want to add other files for specific people to see how do I make that file password protected?

    In Adobe Acrobat you can secure PDFs with certificates:
    Acrobat Help | Securing PDFs with certificates

  • How to assign the downloaded file path in dropdown menu dynamically?

    I have one jsp page. In that jsp page one dropdown menu is there. Dropdown menu contains "save" and "saved content". I download the file using "save" option in menu. That downloaded file path is assigned to the below of the "saved content" option. Then i clicked that downloaded file path, that file will be open.
    My problem is how to assign the downloaded file path in dropdown menu. plz help me.

    dittu wrote:
    My problem is how to assign the downloaded file path in dropdown menu. plz help me.I don't understand your problem.

  • How to specify the database file path when create FDM application

    Dear All,
    How to specify the database file path (MSSQL) when create FDM application?
    Right now, all data file are placed in the D:\ . I want to specify the database files (log and mdf file) in other place. How to do it?
    Thanks.

    Where is the highS2.xml located on the disk? If you add it to your project you should set its Build Action to Content and its Copy To Output Directory to Always in Visual Studio:
    Please remember to close your threads by marking helpful posts as answer once your issue has been solved and then start a new thread if you have a new question.

  • How can i call this file path into my bsp-html  to display the images?

    Hi
    I have a file path for an image like c:/test_logo.bmp.
    How can i call this file path into my bsp-html  to display the images?
    moosa

    Try this...
    Can i have  sample code in BSP-HTML to display images?

  • How will u make the file not to be process by other?

    how will u make the file not to be process by other? thanq

    Hi Krishna,
    File locking is not supported.
    Look at the OSS note 821267 for File Locking / Incomplete Processing.
    Regards
    San
    Remember to set the thread to solved when you have received a solution there is a Way.

  • How do I Make cr2 files to jpeg in photoshop elements 10? [was:files]

    How do I Make cr2 files to jpeg in photoshop elements 10? And why are my raw photos looking really pixilated?

    mgills2013 wrote:
    What is the difference between mRaw and sRaw?
    http://cpn.canon-europe.com/content/education/infobank/image_compression/file_types_raw_sr aw_and_jpeg.do

  • How can i make cotrol file which have conveyor and ?

    how can i make cotrol file which have conveyor " to move the bottle and slider " to fill the same bottle ?
    i attach my control file.............
    " Science is came....not come "
    I study Mechatronics Engineer
    skype : t_alhowaiti
    Attachments:
    convyer.ctl ‏16 KB

    Jeff·Þ·Bohrer wrote:
    billko wrote:
    ThaerAL-Hwaiti wrote:
    i want to make a production line which move a bottle on a conveyor and fill it .
    That's all good and fine, but what have you tried codewise?  Let's see what you have so far and we can go from there.
    The easy answer is "an assignment" and a desire to pass the course without actually needing to read and comprehend information.
    I as trying to be diplomatic about it. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How do I make ALL files with RTF extension open in Nisus Writer?

    How do I make ALL files with RTF extension open in Nisus Writer? Right now it opens in Text Edit. I don't want to change it for one file. I want all files, regardless of how many or where they are.

    select a .rtf file in finder and enter command+i. in the resulting popup go to the "open with" section and change the app to open it to Nisus Writer and click "Change All".

  • How can i make doc file in ipad

    how can i make doc file in ipad??

    I believe that Pages for the iPad is capable of creating documents compatible with MS Word's .doc format.
    Best of luck.

  • How Do I get a File Path from a FileName?

    Hi there,
    I was wondering how do i get a file path(i.e) directory only from a file name.
    Say i got a file called "C:\Test.txt" is there a method in java that will allow me to only get "C:\"?
    I've tried getPath(), getAbsolutePath() and they all return the directory and the file itself.
    Please Help
    James

    String path = file.getPath();
    String name = file.getName();
    int i=0;
    for(i=0; i< (path.length()-name.lenth() ); i++){
    String temp = path.substring(i, i+name.length());
    if(temp.equals(name) break;
    return path.substring(0,i);

  • How can I make Keynote files read-only (eg: to share with students)?

    I would like to share some keynote files with students, and I would like to set them up as read-only, so that the students can tap the screen, read my presentation, but not alter it.  I've tried to set the files up as read-only on my iMac desktop, but when I load the file onto my iPad, it's still editable.
    Any ideas re: how to make Keynote files read-only?
    I've tried to export the files as PDF and load them into iBook, but some of Keynote's basic "build" functions won't work this way.  Specifically, I have files set up with questions and answers (ie - a question appears, and you have to tap the screen to see the answer, but this "build" function seems to disappear when I get it to show up in iBook).
    Any ideas how to make Keynote files read-only?  I am happy to use another program, but I want the students to tap the screen in order to see the answer to a question.
    Thanks!

    as long as $PATH is set, you shouldn't need to reconnect them (i think).  if you send the list of apps through | awk -F '/' '{print $NF}' | that'll strip the path
    /edit: added the "(i think)" part
    Last edited by brisbin33 (2009-06-02 21:33:06)

  • How to cffileupload and store file paths in a database?

    I'm using CF 9 and have multi-file uploading working. What I need help with is a help desk type page that will display the filenames with links to the files that are uploaded with the form that a user submits. When I view an admin page, I need to see the email form results with a list of the files uploaded and links to where they are.
    Any ideas on how I can get an admin page to display only the files associated with each form submission? I'm assuming that I need to find a method of stroring each uploaded file path to a database but I don't know how to do that. Any help would be appreciated. Thanks

    You could proceed as follows:
    1) Create a database table named uploadedFile. The columns could be, for example,
    upload_id: INT, autoincrement, primary key
    datetimecreated: DATETIME
    serverfile: VARCHAR(50)
    serverdirectory: VARCHAR(30)
    2) Do your multi-upload, for example,
    myMultiUploader.cfm
    <cffileupload url="myUploadFiles.cfm" width="600" ... etc>
    myUploadFiles.cfm
    <cffile action = "uploadAll" destination = "c:\myUploads" nameConflict = "overwrite">
    <!--- This is where your question gets answered --->   
    <!--- All the information about each uploaded file is stored in the cffile structure. ColdFusion creates one cffile struct for each and every file you upload in a single upload round --->
    <!--- Save the information about each file to the database. The back slash \ often serves the purpose of an escape character. So I've replaced it with the forward slash / in the file path. --->
    <cfquery name="saveUploadInfo" datasource="myDSN">
        insert into uploadedfile (datetimecreated, serverdirectory, serverfile)
        values (#cffile.timecreated#, '#replace(cffile.serverdirectory,"\","/","all")#', '#cffile.serverfile#')
    </cfquery>
    <!--- You could in fact log (and review) all the upload data by means of the following --->
    <!--- <cflog file="uploadData" text="#serializeJson(cffile)#"> --->

  • How to get FILENAME from FILE PATH

    does anyone know how to get filename from a file path for example
    FILE PATH: C:\Project\uploadbean\web\uploads\Button.txt
    returns
    FILENAME: Button.txt

    @BalusC
    ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser.

Maybe you are looking for

  • Mail on iPad and Iphone

    When using the mail in IOS5 (or previous versions) why isn't there a way to mark and email as spam?

  • Error in mail proxy on OSB Server

    Hi, I am facing following issue in my production, but no idea. please help me to resolve. ####<Apr 8, 2013 11:26:19 AM SGT> <Error> <WliSbTransports> <PRODSVR> <OSBMGNDSVR1> <pool-16-thread-1> <<anonymous>> <> <0000Jq0Z35q5qY15zvw0yW1HHx7h000001> <13

  • Step in with a NavigationConnector

    Hello, the recommended way to add a Navigation from other sources is to implement a NavigationConnector, explained in: http://help.sap.com/saphelp_nw04s/helpdata/en/42/f784be16671bf0e10000000a11466f/frameset.htm There are two questions I could not fi

  • Webforms caching

    Hi, After deploying my forms to the server, i run the form from runform.htm. This opens up a new window with my form. After i close the window and run my form from runform.htm, It doesn't reload the form but instead shows a cached version. I would wa

  • Get short text of component in packing instruction

    Hi, i need to get the short text of Components tab in transaction POP3 (packing instruction). How can i do it? Best regards.