redballoon Posted January 29, 2008 Posted January 29, 2008 I would like to find out what file extension a particular file has when it is inserted into a container so if it is a pdf I would like to leave it alone, but if it is a picture I would like to run a script on it.... how can I tell what the file type is ?
bcooney Posted January 30, 2008 Posted January 30, 2008 It's not as easy as if Right (containerfield, 3) = "pdf" ?
redballoon Posted January 30, 2008 Author Posted January 30, 2008 NO probably not but I already had a Get(systemPlatform) statement and adding any others just made it loads more complex, this way I kept it all in the applescript and can use the same script for other containers (which I am doing) so at the moment the resize script is being used in 22 separate containers / Layouts in the end it may be used in 50 containers so this is just easier for me really since I don't know Filemaker or applescript that well, the whole thing works rather well.... Just trying to see if ImageEvents can actually save an image at say 70% quality.... then I'll add that to the apple script next... I must say compared to PHP + SQL this is really great fun !
Recommended Posts
This topic is 6144 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