ADD
ADD
MODIFICATION of this post down at the end…
ADD
ADD
Hello Guys,
PLEASE HELP,
“I need geniuses”
Sorry about this… I’m not the expert at applescript… Just a “Advanced BEGGINNER” LOL… I’m trying to keep smiling here…
I build this app with a college, but my college is in illness and won’t be back for a will…
The app at the end is a “GEM”
This app has been working very well since the last 3 years I Think.
But some of us got a new mac with the “OSX Yosemite” and Kaplunk…
It’s jammed…
I was able to fix a few problems with no problem, but… :mad:
I’m stuck with the message error of “The variable bundleData is not defined”
I have no clue how to fix this…
I tried I think at leess 6 or 7 forums, but no luck…
This would be too long too copy the script, so it’s link to a shared dropbox… For the application and a pdf sample. So you can see the input and output.
https://www.dropbox.com/sh/4atrg74hcn397sn/AADTDY_gebQtK3GTE9VJ2t1Aa?dl=0
We have this script that we put a specifically build PDFs in a folder “[XYZ]” and drop that folder on the script.
and the script does the next action…
It takes the PDF (composed of 5 pages) and splits its in 3 sets of inner folders.
Folder 1 : Named “PDF originaux” in witch the app moves the originals pdf inside
Folder 2 : Named “PDF Pages” in witch the app splits the PDF LAST 4 pages in pdf format with title “[name on pdf]-page2.pdf” and “[name on pdf]-page3.pdf” and so forth… is result of 4 pdf files
Folder 3 : Named “Fichiers JPG” in witch the app exports the LAST 4 pages of the pdf separately in JPG format with title “[name of pdf]_B” and “_L”… and so forth, you will see in the sample.
You’ll see it the folder sample
Thank you ALL in advance for your HELP…
I’ll be very gracefull for your kindness of your knowledge
Thank’s again
P.S. Sorry for the French
Joel
Model: MacBook Pro (Retina, 15-inch, Mid 2014)
AppleScript: Version 2.7 (176) AppleScript 2.4
Browser: Safari 537.78.2
Operating System: Mac OS X (10.10)
MORE INFO
I was able to draw down to where it’s named…
It’s at the :
set theCommand to "sips -M " & (quoted form of sRGBProfilePath) & " " & renderingIntent & " -s dpiHeight " & theDPI & " " & " -s dpiWidth " & theDPI & " -s format " & finalFileFormat & " -s formatOptions " & (item 5 of bundleData) & " -s copyright " & (quoted form of theCopyright) & " " & " " & " --resampleHeightWidth " & (item 4 of bundleData) & " " & (item 3 of bundleData) & " " & (quoted form of thePDFPath) & " --out '" & theDestinationPath & PDFnameOnly & (item 2 of bundleData) & "'"
This is where the script stops and tell me “The variable bundleData is not defined”
Thank’s again