Russ_D Posted January 14, 2009 Posted January 14, 2009 How is the best way to delete a container's image file that is a referenced (not stored in FM) within FileMaker script?
Russ_D Posted January 14, 2009 Author Posted January 14, 2009 Thanks but I am interested in breaking the reference and deleting the externally stored image file in a script.
bcooney Posted January 14, 2009 Posted January 14, 2009 Oh, thought that was too easy. Use Doug Gardner's trick. Isolate a zero found set. Then Export Records (no records, actually) without a dialog using the path of the file you wish to delete. FM will delete the file.
comment Posted January 14, 2009 Posted January 14, 2009 (edited) Bob Bower's trick is much simpler: http://www.databasepros.com/FMPro?-DB=resources.fp5&-lay=cgi&-format=list.html&-FIND=+&resource_id=DBPros000819 --- WARNING: Be careful with this - it deletes files. Edited January 14, 2009 by Guest
bcooney Posted January 14, 2009 Posted January 14, 2009 Much nicer, doesn't need the zero found count.
Recommended Posts
This topic is 5793 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