Newbies gaassist Posted July 26, 2005 Newbies Posted July 26, 2005 Does anyone know how to have a field link to a folder on the desktop that contains many pictures?
Fenton Posted July 26, 2005 Posted July 26, 2005 Caveat: This is a single-user only solution. It will not work on a network. There is a way. But you must take into consideration that everyone's Desktop has a different path, because of the short user name. Mine is: "Macintosh HD/Users/fej/Desktop/" FileMaker doesn't know what your Desktop path is. AppleScript does. So what you can do is run a short AppleScript to set your Desktop path into a global. You also need to convert the Mac path ":" to "/". Then add your Folder path and file path, to get a full file path. The Folder path could be in either a regular text, or global if all pictures share the same path. You can then add an full "image:/" prefix to produce an entire FileMaker image path: imagemac:/Macintosh HD/Users/fej/Desktop/Pictures/Wounded_man.jpg The calculation looks like this, with a Container result: "imagemac:/" & DesktopPath & FolderPath & "/" & FileName [optional] There is also a relative image prefix, which is just "image:" You can have more than 1 reference for a file path, return separated. So, for fun, I included the relative path also. The image shows in either location, such as in this example file: imagemac:/Macintosh HD/Users/fej/Desktop/Pictures/Wounded_man.jpg image:Pictures/Wounded_man.jpg ContainerPath_Desktop.zip
Recommended Posts
This topic is 7158 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now