February 8, 200520 yr Newbies I have a script that lets the user import a PDF file using "Import Image", I actually import the file not the link. After they have imported this I would like to check the size of the file in the container field because I don't want it to be over 150k. however I can not find any functions or script steps that seem to offer this. Any help would be greatly appreciated. Sean
February 8, 200520 yr See the FM Help article "Importing photos from a digital camera or other device (Mac OS)." According to the article, it is possible to get the image size. I'm on XP, not on OS X, so I cannot confirm.
February 8, 200520 yr Sean: I don't believe you can capture the image size in bytes, but you definitely can get image size in pixels (height and width, plus the dpi count) in which case you can institute a rule based on those items. For example, I have clearly stated in one of my solutions that thumbnails put into the system have to be 2 inches by 2 inches, and 72dpi. FileMaker can test for those parameters (actually =< those parameters) and reject anything outside them, by deleting the item from the container. -Stanley
Create an account or sign in to comment