Re: AS Bug with 10.12?
Re: AS Bug with 10.12?
- Subject: Re: AS Bug with 10.12?
- From: Yvan KOENIG <email@hidden>
- Date: Sun, 15 Jan 2017 14:38:23 +0100
Le 15 janv. 2017 à 01:38, Jon Rosen < email@hidden> a écrit :
I have an AppleScript that that runs within FileMaker that has been running reliably for years. Well, almost reliably; there was an issue with SIPS a year or so ago. At any rate, The script generates 300 dpi and 72 dpi JPEGs. After making the first few, my client gets a “FileMaker Quit” alert. But, FMP doesn’t actually quit. The script still runs perfectly under OS X 10.11, but gives this error with 10.12.
The scripts are listed below. They are both identical except for the dpi of the output files. Does anyone have any insight into this perplexing bug?
Thanks,
Jon
Script 1: set aFile to "/Volumes/Flight Inbox/PDFs/xxxxx" set outFile to "/Volumes/Flight Inbox/300 PPI/yyyyy"
set posixInput to quoted form of POSIX path of aFile set posixOutput to quoted form of POSIX path of ((text 1 thru -5 of outFile) & ".jpg")
set posixProfile to quoted form of "/Library/Application Support/Adobe/Color/Profiles/Recommended/sRGB Color Space Profile.icm"
--do shell script "sips -s format jpeg -s formatOptions high -s dpiHeight 300 -s dpiWidth 300 -s formatOptions best -z 2550 3300 -e " & posixProfile & " " & posixInput & " --out " & posixOutput do shell script "sips -s format jpeg -s formatOptions high -s dpiHeight 300 -s dpiWidth 300" & " " & posixInput & " --out " & posixOutput do shell script "sips -z 2550 3300 " & posixOutput
Script 2: set aFile to "/Volumes/Flight Inbox/PDFs/xxxxx" set outFile to "/Volumes/Flight Inbox/72 PPI/yyyyy"
set posixInput to quoted form of POSIX path of aFile set posixOutput to quoted form of POSIX path of ((text 1 thru -5 of outFile) & ".jpg")
set posixProfile to quoted form of "/Library/Application Support/Adobe/Color/Profiles/Recommended/sRGB Color Space Profile.icm"
do shell script "sips -s format jpeg -s formatOptions high -s dpiHeight 72 -s dpiWidth 72 -s formatOptions best -z 612 792 -e " & posixProfile & " " & posixInput & " --out " & posixOutput
Here both scripts behaved flawlessly. I encapsulated the active part in a loop creating 50 files and the result was perfect.
How are the paths aFile and outFile defined ? I guess that xxxxx and yyyyy are defined by FileMaker. I'm wondering if one of them - mainly yyyyy - may be erroneously build including a slash. In such case, assuming that the name component is set to "yy/zzz.pdf", you will not get a jpeg named "yy/zzz.jpg". You will get a file named "yy" and of course, if FileMaker is supposed to work upon the file it will be fooled.
Yvan KOENIG running Sierra 10.12.2 in French (VALLAURIS, France) dimanche 15 janvier 2017 14:37:10
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden