How to Hyperlink an image on the hard drive

We are converting to iMac from Windows and keep our photography business data in excel spreadsheets. Each image name links to an image on the PC hard drive. On the iMac in Numbers, I can link text in a cell to a webpage or an email but if I use the path to the location on the hard drive, it doesn't work. What I would like is to pop the image in Safari when I click the hyperlink in the Numbers cell. Example:
The iMac name is butterfly, the user is reniepoole and the path to the image is Documents/image.jpg. If I put file://butterfly/users/reniepoole/Documents/image.jpg into the address bar in Safari, it will render the image OK. If I use the same address as the URL when I try to insert the image as a hyperlink in a Numbers cell, it doesn't work. Does anyone know how to render the image in Safari from a link in Numbers?

Here is a script doing the trick.
--[SCRIPT openFileFromNumbers]
Enregistrer le script en tant que Script : openFileFromNumbers.scpt
déplacer le fichier ainsi créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
Sélectionner une cellule contenant un chemin d'accès à un fichier.
menu Scripts > Numbers > openFileFromNumbers
Le script ouvrira le fichier.
--=====
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.
(* à vérifier avec Snow Leopard *)
Cochez la case "Afficher le menu des scripts dans la barre de menus".
--=====
Save the script as Script : openFileFromNumbers.scpt
Move the newly created file into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Select a cell containing a link to a file.
menu Scripts > Numbers > openFileFromNumbers
The script will open the file.
--=====
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)
2009/12/28
--=====
property useSafari : true
true = use Unix paths and open thru Safari
example : file://Macintosh HD/Users/yvan_koenig/Documents/95.jpg
false = use HFS paths and open thru Finder
example : Macintosh HD:Users:yvan_koenig:Documents:95.jpg
on run
set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
set thePath to value of cell rowNum1 of column colNum1
end tell
if useSafari then
tell application "Safari" to open location thePath
else
tell application "Finder" to open file thePath
end if
end run
--=====
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 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 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
--=====
--[/SCRIPT]
Yvan KOENIG (VALLAURIS, France) lundi 28 décembre 2009 18:38:42

Similar Messages

  • How to install archlinux2008.6 from the hard drive?

    How to install archlinux2008_6 by archlinux2008_6_i686.iso in  hard drive?
    i get the booting files(archlive.img,vmlinuz26) in the archlinux2008_6_i686.iso and put them in c:\
    in the grub command mode the use of these code:
    root   (hd0,0)
    kernel (hd0,0)/vmlinuz26
    initrd (hd0,0)/archlive.img
    boot
    i get those from : http://blog.chinaunix.net/u/31909/showart_1121360.html
    but  it stopped  , some  code  printing on the screen...................it can not continue..
    from the  google  i  find :"this method must use  the "vmlinz "and the "initrd.img",this files is from  archlinux2008.03.iso
    i don't understand .......
    i must download the archlinux2008.03.iso?...........it's too much  trouble.
    How to install archlinux2008.6 from the hard drive? or  who could give me the two files (the "vmlinz "and the "initrd.img")  from  archlinux2008.03.iso?
    e mail: [email protected]
    THS.
    --------this is my  topic for the first time in english, I hope that you can  know what i said ~~~
    Last edited by 自学linux (2008-08-29 03:14:54)

    自学linux wrote:
    http://blog.chinaunix.net/u/31909/showart_1121360.html
    A waste of CD-ROM...........,in china, many people install linux  just  by iso,don't burn the iso,
    could you give me the two files (the "vmlinz "and the "initrd.img") in  archlinux2008.03.iso, those  can't  find  in  archlinux2008.06.iso
    my email :[email protected]
    Do you have a USB stick you could copy the image to? Where I live, a CD costs $0.50 at most. To put that into perspective. A coffee costs a $1.00. Either a CD costs a lot more than a coffee where you live or are you telling me you'd rather get a lot of grey hair than buy half a coffee?
    Sorry I can't be of much help. I don't know how to do this method of installation. If you're desperate, you could try making an extra partition, and trying something with that. Take a look at these:
    http://wiki.archlinux.org/index.php/Fas … nux_System
    http://wiki.archlinux.org/index.php/Ins … her_distro
    Last edited by solarwind (2008-08-27 04:37:59)

  • How do I import images from my hard drive without losing resolution? My original files after import are significantly smaller. What should I do?

    How do I import images from my hard drive without losing resolution? My original files after import are significantly smaller. What should I do?

    Hi Keith, and all others chiming in, I do have the correct option checked in advanced settings telling iPhoto to copy the images into the library. What is a refernced library? Perhaps this is where I am getting confused. I exported my entire photo library from an old iMac5 to my external hard drive, from there I attempted to import the entire library to my new iMac. Am I overlooking an obvious and easy way to import from the hard drive to the new iMac--I dragged the entire photo pholder from the hard drive to the open window of iPhoto on the new computer. Now, I only get preview file sizes in iPhoto, unless I have my external drive open. Perhaps I need to import the original images from the hard drive in a different way...?! (This is making me feel pretty stupid.)

  • How can I erase (or remove) the hard drive from a dead Time Capsule?

    How can I erase (or remove) the hard drive from a dead Time Capsule?

    I found this having had the same problem...
    http://forums.macrumors.com/showthread.php?t=553818
    Having removed the hard drive I'm finding I can't reformat it. I manage to mount the HD but Disk Utility crashes when trying to format (HD attached to Mac via Newer Tech. SATA cables to USB) and causes what I think is a kernal panic on my Mac which hard crashes. I see 3 partitions when attempting to mount one of which is AFP. Anyone got any ideas about how to do this? I've dug around but the only progress I've made is to note others have had to work around ACL's when replacing the logic board of the TC. Not sure if this even relates to the problem. However the tool for doing this seems to have been removed from SL. (Forum references to this procedure all relate to 10.5).

  • How do I deactivate DreamWeaver when the hard drive died?

    How do I deactivate DreamWeaver when the hard drive died?  It will not reinstall on the new PC because it wants the old one deactivated, which is impossible.  There is no way I can deactivate it and I have a legitimate copy.  I had it on one PC that died, so I bought a new PC and put it on that.  A few days later I had to return the new one because of problems with the PC.  They give me a replacement which seems to be working OK, only now Adobe thinks I have DreamWeaver all over the place.  I don't have it anywhere.  All I want to do is put my legitimate copy on my new PC.  HELP!!!

    You need to contact Adobe Support either by chat or via phone when you have serial number and activation issues.  They can take care of the deactivation for the lost drive.  Chat operates 24/7.
    Here are some links to help make contact:
    http://www.adobe.com/support/chat/ivrchat.html
    http://www.adobe.com/support/download-install/supportinfo/

  • How to install dmd image from external hard drive to imac with no os installed

    I have a G5 iMac that the hard drive crashed.  I have replaced the hard drive and now trying to install the 10.5.8 dmd image back from a external hard drive since I don't have a disk.  I have not been able to figure how to boot up and install this way.

    Neither do I.
    Restore Tiger 10.4 & Leopard 10.5  DVDs are available from Apple by calling 800-767-2775 as of January 20, 2013.
    https://discussions.apple.com/thread/4720126?tstart=0

  • How do I make room on the hard drive??

    I need to make room on my older MacBook laptop (2 GHZ Intel Core Duo, 1 GB 667 MHz).  I am new to Mac and can't figure out how to manage the space.  I am using 5x the amount I think I should be. What is using the space on my harddrive?  Does any know any easy way to make room on the hard drive?  Are there programs I can delete?
    Thanks.

    You might look at this FAQ: http://www.thexlab.com/faqs/freeingspace.html

  • How do I delete items from the hard drive?

    Im trying to make more space in my hard drive and want to delete items that I no longer want or need. How do I see everything I have in my hard drive and delete it?

    Visit The XLab FAQs and read the FAQ on freeing up space on the hard drive. Also Freeing space on your Mac OS X startup disk.
    There are a few utilities for scanning the drive. One good one that is free - OmniDiskSweeper.

  • How to delete SMS text from the hard drive of a IPhone 3gs

    How do I delete SMS text from the hard drive of a iPhone 3GS

    If you want to delete the messages from within the text app, swipe over the name or number of the sender and hit delete.
    If you are afraid that someone will be able to restore them by ckecking your HD, you will have to set up the phone "as new device" or choose "erase all content and Settings" in Settings/General/Reset. But this willerase the whole phone, not only your text messages.
    How to set up your iPhone or iPod touch as a new device
    Message was edited by: Ingo2711

  • How to install a DVD on the hard drive

    I have only used DVDs that are not supposed to be copied.  Now I have a video course that recommends installing the DVD to the hard drive, and suggests launching the program from the hard drive will be better.  
    I have no clue how to install a DVD.  
    Thanks,
    Tom

    Insert the DVD, double-click it to show the folder, and drag that to the desktop, then it will copy.

  • TS1372 How much is it to replace the hard drive in my iPod classic

    I've had my iPod classic for about three and a half years now and a few days ago it started to freak out on me. So when it stopped responding, I did the hard reset like I'd already done a million times before. Only this time, it said that I had to plug into iTunes to restore it. Long story short it didn't work and when I took it to Best Buy they said that the hard drive had failed. To get it repaired they also said that I would have to ship it to Kentucky. I live in New Mexico and I'm just wondering if anyone knows how much that costs and wether or not it's just a better idea to get a new one.

    Here is the Apple iPod repair price list, I think US$179
    For 3rd Party service, US$50 to US$130, Google for "IPOD CLASSIC REPAIR New Mexico", for one near your area.
    Good Luck!

  • How do I erase info on the hard drive

    how do I erase info on the hard drive

    If you want to give him a really clean new laptop, the best thing to do would be to erase it (or secure erase it, if there's stuff on there you don't want being found if the machine were to get stolen or something) and reinstall the system from scratch
    If you want a simpler method, it's probably easiest to just securely delete anything sensitive (put it in the trash and choose Finder -> Secure Empty Trash) and then create a new user for your son.  Make him an admin user, then log in as him and delete your old user, making sure to tell it to delete your user folder when asked.  Of course, you'll want to make sure your data is safely stored away elsewhere first!
    As far as applications go, if they were bought from the App Store, you can legally use them on multiple machines in your household, but you could also delete them by just dragging them to the trash.  For other apps, if they required an installer, look for an uninstaller provided by the company that made the app.  If not, just drag it to the trash.

  • How do I remove programmes from the hard drive

    Hi This may seem stupid but as a new Mac user I can find no way of deleting an installed photoshop and skype from the hard drive. Can anyone help please?

    I do not recommend the "drag and drop" method since there may be artifacts left behind that have been installed into other folders.
    Suggest you go to Photoshop and Skype support web site. Carolyn's advice is also good too. 
    For Adobe Photoshop:
    Use the Uninstaller in Utilities/Adobe Installers.
    If that doesn't work, download this, read the instructions very carefully and follow them.
    http://www.adobe.com/support/contact/cs3clean.html

  • How can I boot images on external hard drives with an older OS

    Hi,
    I recently bought a new MacBook Pro Retina (running OS 10.9.2 Mavericks), because I had to give back my „old“ one (bought in February 2013, running OS 10.8 Mountain Lion), which was only a loan from University.
    So here comes my problem: I used Carbon Copy Cloner to create bootable images of my old MacBook on two independent hard drives. I tested these images and they both booted perfectly well on the old MacBook. As it turns out, I cannot boot from these images on my new MacBook Pro, I just get a crossed grey circle (both images work perfectly well when I boot from my internal hard drive and I just use them as external drive, by the way). Is it really correct, that it is not possible to boot a system with an older OS as the OS of the MacBook? Why? I really would like to have the option of booting these images, since I have some applications installed I might want to use from time to time in the future (and I don’t want to migrate all applications to my new MacBook, but prefer a clean install). As I understand, it would be necessary to update the images to Mavericks. But how do I do this when I have no computer which is able to boot them?
    I still have a very old MacBook from 2007 running OS X 10.5 (Leopard) and I also tried booting the images with this computer - didn’t work either. Would it help to update this to Snow Leopard? What OS would I need to boot my Mountain Lion images?
    Any help on this is highly appreciated!
    Thanks!

    Hi!
    Thanks for your prompt response. The reason I don't want to migrate all apps is that I had installed a lot of scientific applications on the Mt-Lion MacBook that I will definitely not use in the future, some that I might use only very rarely, and I can migrate only the complete applications folder (and I have only a 256 GB hard drive). Of course I could deinstall the unused apps manually after the migration, but I am not 100% sure, if this procedure completely removes all the stuff from the libraries and preferences, etc. Moreover I also started playing with some time ago with server applications like apache server etc. and since I am a complete newbie in this field, I have to admit, I really don't know how to uninstall these things properly. So I figured a clean install for the new MacBook would be the best. Well, maybe I will migrate everything and remove the unnecessary stuff afterwards manually. I am just a bit disappointed, because I didn't anticipate these problems with the images...
    Just one further question: Is it correct, that if I find a way to update my images from Mt-Lion to Mavericks (if that is possible at all?), this would make them bootable again?
    Thanks!

  • HT1553 How to backup an image of internal hard drive on external hard drive with disk utility

    I've followed the instructions under the paragraphph 'Instructions for backing up to an external hard disk via Disk Utility
    in this article: http://support.apple.com/kb/ht1553. My external hard drive is plugged in. I mount my install DVD of Leopard and restart. Press C to boot on the DVD, select the language and go to Utilities -> Disk utility.
    However I'm blocked in step 9 when I have to choose the destination. I don't have the option to select my hard drive to back up the image. I only have 2 options: root or Applications to save the image. Nevertheless, I can see my external hard on the left.
    - Could it be because the internal hard drive is encrypted? 
    - Could it be  because the external hard drive is encrypted? 
    Note also that the button 'Verify disk' is greyed out.
    Any clue?

    I always advise Mac users to never:
    encrypt a disk
    set a firmware password
    In my experience they cause more loss of data than they are worth.
    On Leopard I always use the latest free Carbon Copy Cloner to backup and clone disks - it is so simple to clone to either a disk or disk image. The free version may not be compatible with later OSs.
    As you appear to be on the wrong forum I will follow this with my standard message.
    Whilst it may not be your fault I am afraid it appears that your post is on a forum which is not the best for your OS. It will save the time of the unpaid volunteers here, and may resolve your issue faster, if you could examine the list below and see if there is a more appropriate forum to which you could direct your question.
    OS X 10.9 Mavericks
    OS X 10.8 Mountain Lion
    OS X 10.7 Lion
    OS X 10.6 Snow Leopard
    OS X 10.5 Leopard
    OS X 10.4 Tiger
    OS X 10.3 and earlier
    OS 9, OS 8 & System 7
    OS X Technologies
    OS X Server
    iPad
    iPhone
    iPod
    Other

Maybe you are looking for