![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Easy, and you don't need an external. |
#12
| |||
| |||
|
#13
| |||
| |||
|
|
Given the fields: thefilepath (text) yourcontainerfield (container) containercalc (calculation, text result) = yourcontainerfield 1. File--> Import Records --> Folder... 2. Specify a folder with images 3. Select "Import only a reference..." 4. Click Continue... 5. Map File Path to the field "thefilepath" -- Do not map anything else. 6. After Import, run the following script: Set Error Capture [On] Go to Record/Request/Page [First] Loop Set Variable [$x; Value:Substitute(yourtable::thefilepath;"file://";"image:/")] Go to Field [yourtable::yourcontainerfield] Insert Picture [Reference; "$x"] Go to Record/Request/Page [Next; Exit after last] End Loop At the conclusion of the script, containercalc *will* contain pixel resolution for the images. |
#14
| |||
| |||
|
|
Not here, it doesn't. Steps as described followed precisely. I have the file name and nothing else. Perhaps I should have asked this before: is this possibly platform-specific? I am doing this on OSX 10.4.9. I just got home from my 12-hour night shift. After a bit of a nap, I will try it on XP. Matt |
#15
| |||
| |||
|
|
In article <v8ednaGtycGZhgbbnZ2dnUVZ_iydnZ2d (AT) comcast (DOT) com "BillMarriott" <wjm (AT) wjm (DOT) org> wrote: At the conclusion of the script, containercalc *will* contain pixel resolution for the images. Not here, it doesn't. |
#16
| |||
| |||
|
|
How are you getting the resolution, Bill? I think the length() function will give you image size. Or are you using GetLayoutObjectAttribute(objectName; "content"/"source")? |
#17
| |||
| |||
|
|
Hi Howard, How are you getting the resolution, Bill? I think the length() function will give you image size. Or are you using GetLayoutObjectAttribute(objectName; "content"/"source")? I'm not doing anything special beyond the script I posted... Perhaps my computer is just a little bit smarter? Perhaps I'm going to have to post a video or something to show I'm not using any special tricks. |
#18
| |||
| |||
|
|
You don't say what version of FileMaker, but as far as I know there is no ability in any version to generate checksums from Container field data I'm using filemaker 8.5, my need is to create a registration number |
#19
| |||
| |||
|
|
I verified the procedure both on Windows XP and Mac OS X using FileMaker 8.5 before posting. Not here, it doesn't. Steps as described followed precisely. I have the file name and nothing else. Perhaps I should have asked this before: is this possibly platform-specific? I am doing this on OSX 10.4.9. I just got home from my 12-hour night shift. After a bit of a nap, I will try it on XP. Matt |
![]() |
| Thread Tools | |
| Display Modes | |
| |