Jump to content

This topic is 7158 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.