Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I am running an applescript which loops through a found set in filemaker, copies the image, creates a thumbnail and extracts the path. In middle I get an out of memory error. I allocated more memory to clip2gif and filemaker pro 5 and it didn't help. I am running on os 9.2.

help!

I am including the full script :

property FM_DatabaseName : "Styles 99 Test"

property FM_Image_Small_Field : "ImageSmall"

tell application "Finder"

open application file id "c2gf"

end tell

tell application "FileMaker Pro 5v3"

activate --bring to front

go to database FM_DatabaseName

tell document 1 --document is the found set

set record_count to count of records --count the found set

repeat with i from 1 to record_count --looping through the found set

go to record i

if cell "ImageBigIn?" of record i = "Yes" then -- if no do nothing

try -- grab path: OK for path OK only

set image_path_var to get data of cell "SKETCH" of current record

tell application "Finder"

set image_name_var to name of image_path_var

end tell

tell application "FileMaker Pro 5v3"

activate --brin to front

set cell "ImagePath" of current record to (image_path_var as string)

set cell "ImageName" of current record to image_name_var

do script "Set <Image Smail Updated> to today"

end tell

on error

do script "Set <Date Image Smail Updated> to 2/1/2345" -- Add

end try

do script "Copy Image Big to clipboard" -- copy sketch field

tell application "clip2gif"

activate

save clipboard in window

delay 2

save window 1 in window 1 maximum size {144, 144} -- pixels AKA 2 inches

set picture_var to content of window 1

close window 1

end tell --application "clip2gif"

tell application "FileMaker Pro 5v3"

activate --bring to front

set cell FM_Image_Small_Field of record i to picture_var

end tell

end if -- cell "ImageBigIn?" = "Yes" then -- if no do nothing

delay 2

end repeat --looping through the found set

end tell --document 1

end tell

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