snatkins Posted May 11, 2005 Posted May 11, 2005 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
Fenton Posted May 11, 2005 Posted May 11, 2005 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.
snatkins Posted May 11, 2005 Author Posted May 11, 2005 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
snatkins Posted May 11, 2005 Author Posted May 11, 2005 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
Jessica C Posted May 13, 2005 Posted May 13, 2005 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?
Fenton Posted May 13, 2005 Posted May 13, 2005 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now