Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Part I: Thanks to a recent post, I have been able to show the File size and pathway of my referenced image in a table. I am wondering if there is a way to show all of the information in browse mode without clicking on the field. Currently, it only shows 234,436, etc, etc... When you actually click on it, it shows "file size:.....pathway:...." etc....How do I get that to show all of the time?

Part II: Is there a way to script it to print the actual file rather than the referenced file?

Thanks!

Sarah smile.gif

Posted

Is the field big enough? The info is all there I think, it's just 3 lines (and one of them is really long). The numbers you're seeing are just the 1st line, the height and width of the image (or is it visa versa :-?

To print the actual file you have to open it with a graphics application. To open the file you just double-click on the container field. If you've disallowed field entry (in Field Behavior), then you need a script to Go To Field [select, container field]. It will use whatever application is the default for the image type; on Mac OS X the default in usually Preview. Or, if needed, and this is all Mac, you can use AppleScript to specify the application.

If the image was inserted from your local drive, opening it is only going to work on that computer. If it was inserted from a shared drive on another "image server" computer, then it will work on other clients with that volume mounted.

Posted

The field is large enough to show all of hte info - When it is viewed in Browse, the number is formatted as 324623.54 - but when I click on the field - it shows:

size: 324,623

image:../misrach46s.jpg

imagemac:/Macintosh HD/Users/sarahnatkins/Desktop/misrach46s.jpg

So - there must be something in the formatting but I just can't figure out what?!

Also - I tried double clicking on the container field and nothing happens - did I read this wrong? The field behavior allows it to be entered.

Thanks - Sarah

Posted

Okay - fixed the formatting - it needed to be formatted as "Leave Formatted as Entered" - but am still curious about the opening/printing of the file...

Thanks

Posted

Sarah,

I am also interested in getting the container image file size but unfortunately, i missed the recent post you mentioned.

If I insert a file (or image) in the container filed, is there any way to get the actual size of that file?

Posted

Here is an example file using AppleScript to get the file size of the referenced file. It gets the path from the 3rd line of GetAsText ( Image ) info, converting it to a Mac path. It uses that to pass to AppleScript to get the file size (with an approximate conversion of bytes to kilobytes). This requires a script; could be done in a Loop for existing.

As far as double-clicking to open, I goofed. I was thinking of an inserted "file," which does open. To open a referenced image on a Mac it's easy to use AppleScript, using the same path as above. Look at the example.

ImagewSize.zip

This topic is 7202 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.