12/27/2023 0 Comments Indesign data merge empty field namesOn open mgItems repeat with mgThisItem in mgItems tell application id "" try open mgThisItem set mgDocName to name of active document set text item delimiters of AppleScript to " " set mgShortName to text item 1 of mgDocName set text item delimiters of AppleScript to "" set mgHRFilePath to "Macintosh HD:Users:colly:Desktop:testfolder:" & mgShortName & "_HR.pdf" as string set properties of PDF export preferences to properties of PDF export preset "" tell active document export format PDF type to mgHRFilePath without showing options end tell set mgHRDigitalFilePath to "Macintosh HD:Users:colly:Desktop:testfolder:" & mgShortName & "_HRD. It's an amazing script but I need it to do one more thing. a packaged InDesign file without the instructions.txt.I have an applescript droplet which, once an InDesign file is dragged onto it, it creates: Send me a message at Sandee at mac dot com if you want to tackle the script. If you are interested in this challenge, your modified script will be mentioned at where we can link to your download page as well as extoll the brilliance of your scripting abilities. Var gridSize = 4 // Ask user for a PDF var pdfFilter =($.os.toLowerCase().indexOf("macintosh") != -1) ? (function(file) // CS2 includes beep() function.Įxit() // CS exits with a beep CS2 exits silently. There may be potential there, but I would like to support earlier than CS5 if possible, and IdleTasks were introduced in CS5. I probably need to read up more on IdleTasks. I dabbled with chains of IdleTasks, and was able to press my cancel button, but the chain didn't always end, and I ended up locking things up nastily. Is there anything I can do such that my cancel button can be pressed? I don't need to see the PDF import window, so if that can and needs to be turned off, that's fine. If your machine is really fast, you might want to increase gridSize so that the script has more to do. My PC is slow enough that it takes enough time overall to give me plenty of time to hit the cancel button, if it were possible to do so. It asks for a PDF file and then places it in a new document 16 times. I've only run it on CS5.5 on Windows XP, but I believe it should work at least as far back as CS4 on Mac and Windows. The mouse pointer is an hourglass the whole time.īelow is a simplified test script that demonstrates the problem. I also added a cancel button, but although the window appears to have focus at least some of the time during the placements, it never becomes possible to press the cancel button, nor to close the window. Since the total time taken for the PDF placements can be a while, I put up a simple palette window containing a progress bar to give an idea of progress. It works splendidly, but I would like users to be able to interrupt the placement, particularly if they have accidentally passed the wrong XML file to the script! All other product names and services identified throughout this book are used in editorial fashion only and for the benefit of such companies with no intention. I have a script that automates the placement of PDFs onto pages based on an input XML file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |