Adobe Script Tutorial 2 Drop Down List and Export PDFs

  Рет қаралды 6,829

William Campbell

William Campbell

Күн бұрын

Пікірлер: 75
@HarvestrX
@HarvestrX 3 ай бұрын
10:16 You mentioned there is no feedback of the script execution. Many may already know this, but if you have the files folder viewable, you can see the PDFs popping up as they are created, 1 at a time. This is only the second video I have watched of yours William and it is exactly what I was looking for. Thank you so much for these amazing videos! I'll be starting tutorial 3 soon!
@Artistram3d1
@Artistram3d1 2 жыл бұрын
William, not only do you catch us fish, but you also teach us how to fish. These tutorials are very appreciated, thank you!
@wc7
@wc7 2 жыл бұрын
I'm glad you enjoy them.
@kentpanter2044
@kentpanter2044 9 ай бұрын
For years I have searched for information shown in these videos; presented in a way that I can understand. Thank you! I do not use InDesign and found that your script did not run. However, after I installed InDesign and generated a couple of files, everything worked! What I am in shock over is that your videos demonstrate some very advanced features (my perspective) and they still run. Most web scripts don’t run! I believe this is due to time - the scripts have become too old and no longer conform to current regulations. What a surprise and thank you. You are truly a treasure trove of information.
@raycraighead
@raycraighead 2 жыл бұрын
I do not get a sound for alert when setting last parameter to "true". Is this because I'm on MacOS?
@wc7
@wc7 2 жыл бұрын
That is correct. Actually, the current state is no sound on macOS either way, and on Windows, a sound is always played whether true or false. It wasn't always this way, but it is today. At this point the final (third) parameter only controls whether an error icon appears. On macOS, false displays the app icon. True, it's a smaller app icon over a yellow warning triangle now that macOS alerts have changed to look more like a phone. Windows false is "i" in a blue circle, and true is "x" in a red circle. There are similar inconsistencies with the second parameter, the window title. macOS ignores this. Windows uses it, but displays "Script alert" if a title is not provided. Of course all of this could be completely different a few years from now as both platforms seem to change this stuff on the whim of new programmers hired each year.
@mathewmason2319
@mathewmason2319 Жыл бұрын
Just getting started with scripting for InDesign - aka complete beginner - Great tutorial, easy to follow - thanks! If you want to create a scripting tutorial for getting indesign to change its page sizes based on a list from Excel i'd be stoked! - my current project :)
@wc7
@wc7 Жыл бұрын
I have an open source script that might help. "Pages from CSV" www.marspremedia.com/software/indesign/pages-from-csv
@mathewmason2319
@mathewmason2319 Жыл бұрын
@@wc7 OMG AMAZING! That is incredible!
@kenhall1702
@kenhall1702 2 жыл бұрын
How does one set up Visual Studio Code so that it has intellisense for adobe objects?
@wc7
@wc7 2 жыл бұрын
You're not the first to ask, so I'll make a video explaining it in more detail. In the meantime, I'll repeat my answer from another post asking a similar question: Two things help. 1. The ExtendScript Debugger for VSCode: marketplace.visualstudio.com/items?itemName=Adobe.extendscript-debug And 2. "Types for Adobe": github.com/aenhancers/Types-for-Adobe This second one can be confusing how to use and there are multiple examples from different users, some more complicated than others. All you need is the zip from the link, then in each app subfolder (Illustrator, InDesign, Photoshop, etc.) make a subfolder "types". Put the contents of the zip "shared" folder into each "types" subfolder. Then to the same folder, copy the files specific to each app, which there are subfolders for inside the zip.
@wc7
@wc7 2 жыл бұрын
I have a tutorial now showing how to set up IntelliSense for ExtendScript: kzbin.info/www/bejne/hYbFm5iZZbSGjpY
@ZeraComm
@ZeraComm 10 ай бұрын
love this script. Wondering if I can use a modified version to export .xlsx to pdf.
@wc7
@wc7 10 ай бұрын
The video is a tutorial. Learn from it and modify however you like. Exporting Excel to PDF is quite ambitious. Are you ready to figure out how to do that? Not sure it's possible in ExtendScript, but others could know more than I do.
@juancarlosgarcia3539
@juancarlosgarcia3539 Ай бұрын
Can you please make a script that adds bleed to a document?
@dretwav
@dretwav Жыл бұрын
In photoshop I would like to run a process which a) opens a file for which the "variables" have already been associated to layers, choose and import a csv file as the data set, export the dataset as files. I have tried creating an action but the opening and importing of the data set does not get recorded. The result is that the dataset is not updated when I run the action (which is the whole purpose for making it an action). Can you guide me as to how to accomplish this with a script(s). Javascript skills good, experience with photoshop scripting is nonexistent. TIA
@wc7
@wc7 Жыл бұрын
The Photoshop features variables and data sets are clumsy at best, in my experience. That's why I created a stand-alone solution to do the same that doesn't rely on any of that. Here is a video that demonstrates my script "Variable Images From CSV": kzbin.info/www/bejne/gaaVeo2AoriUmqM
@fyi490
@fyi490 Жыл бұрын
hello. Ive installed VS Code, installed ExtentedScript extension.. but there are no command tips ( or how to call it), which show all available actions and sppedup the coding process. For example in Google srcipts such tips are available by default.. its unreal to code without these tips.... cannot know all optional features ((
@wc7
@wc7 Жыл бұрын
Intellisense is covered in tutorial 13: kzbin.info/www/bejne/hYbFm5iZZbSGjpY
@fyi490
@fyi490 Жыл бұрын
@@wc7 thx a lot
@kolcrispy
@kolcrispy 2 жыл бұрын
How to remember last folder path and make it default value for the next run?
@wc7
@wc7 2 жыл бұрын
OK I will make another video and talk about how to do this. Thank you for the suggestion. I appreciate the response.
@wc7
@wc7 2 жыл бұрын
New video with answer to your question: kzbin.info/www/bejne/ooW6cqODbM5reKM
@kolcrispy
@kolcrispy 2 жыл бұрын
@@wc7 Thank you for answering my question sir
@mtm7031
@mtm7031 2 жыл бұрын
I use a script input pdf in indesign but not Centre alignment 😭 But I need to Centre align What can I do sir?
@wc7
@wc7 2 жыл бұрын
I need more explanation. You have a script that places a PDF? What do you want centered? Something in the script interface? Or a PDF placed on an InDesign page? Please elaborate.
@mtm7031
@mtm7031 2 жыл бұрын
@@wc7 Place Multipage PDF scripts But pdf does not align horizontal centers InDesign script I need centers
@wc7
@wc7 2 жыл бұрын
@@mtm7031 Look at my script "PDF Place And Export". kzbin.info/www/bejne/iKKQhZ-Zf7l3Y80 Does that help?
@kodeinc
@kodeinc 2 жыл бұрын
Hey Willliam, Need help open a remote file in indesign from a server
@wc7
@wc7 2 жыл бұрын
Server on your local network? Or something else? On the local network just have the path to the file in the app.open() call. Maybe explain more details. Is the macOS or Windows?
@kodeinc
@kodeinc 2 жыл бұрын
@@wc7 So I have a scenario where I want to import .indd templates from a server and also import xml data into indesign. that is where i am having butterfilles.
@wc7
@wc7 2 жыл бұрын
@@kodeinc The question is still the same. Define "server".
@kodeinc
@kodeinc 2 жыл бұрын
I have a system hosted on aws . It serves stories in the format of xml ready for indesign import. It also serves templates , the templates are generic depending on the publication. Iam trying to download and open the template from within indesign from that remote API as well as the importation of xml data .
@wc7
@wc7 2 жыл бұрын
@@kodeinc I have not done such a thing in script, but that doesn't mean it can't be done. First is how to do it outside of script, in other words, manually from InDesign. That needs to be established first, then replicate the steps in a script to automate it. I haven't done such a thing manually even, so I'm not sure how it's done normally, or how a script would do it without further research and testing.
@nirphotoartjaiminbhavsar6782
@nirphotoartjaiminbhavsar6782 2 жыл бұрын
All JPEG image converter PDf with print password protect photoshop
@wc7
@wc7 2 жыл бұрын
See prior comment and reply. This appears to me as the same question.
@archanaharish3387
@archanaharish3387 Жыл бұрын
Hi, could you please help me with a solution? I have a drop down fiel AMD based on the selection of that drop down fiel there will be predefined Text populated in a textbox. In that Text box, in Addition to the predefined Text manually some additional Text needs to be extended. All works till here fine. But after digitally signing the document, the additional manually entered Text disappears from the Text Box. Any solutions to handle this problem ? Thanks in advance
@wc7
@wc7 Жыл бұрын
I'm not sure. The video is about making a script for InDesign. But you mention "digitally sign". This makes me think you are referring to a PDF, not InDesign. I'm not aware of any way to control digital signing of a PDF from an InDesign script.
@luisgarciaarmas5827
@luisgarciaarmas5827 Жыл бұрын
Hello, I'm from Peru, the videos are excellent, my question is how do I link the scripts to the illustrator with VS Code to make corrections to the scripts, I appreciate your help.
@wc7
@wc7 Жыл бұрын
I'm not certain I understand the question. Do you mean how to run a script in Illustrator? As for VS Code, File menu > Open is one way to edit script. Or add a folder where many scripts are parked. Not sure what you mean by "link to Illustrator with VS Code". That's not a thing as far as I know.
@luisgarciaarmas5827
@luisgarciaarmas5827 Жыл бұрын
I'm sorry that maybe the translator is not helping me. I was referring to how Extendscript does it, which links from the code, you can execute what it does in Illustreitor and correct it in real time and test. Tell me the translator helped me this time hahaha. In summary, test the code in real time in illustreitor.
@wc7
@wc7 Жыл бұрын
@@luisgarciaarmas5827 Now I understand. What you describe is called "Intellisense". A term invented by MIcrosoft long ago for their Visual Studio product. I have a video about Intellisense specific to ExtendScript: kzbin.info/www/bejne/hYbFm5iZZbSGjpY
@luisgarciaarmas5827
@luisgarciaarmas5827 Жыл бұрын
Excellent about "Intelisense" I am going to apply it, great contribution, thank you very much, but that was not what I needed, but from VSCode to be able to execute the programming code and show what it does directly in Illustrator without having to create the file and place it Sequences of Commands.
@wc7
@wc7 Жыл бұрын
@@luisgarciaarmas5827 I don't use anything that launches scripts from VS Code. Maybe there are extensions that will do it but for me that's silly. Just switch to Illustrator and run the script. I have videos about how to run scripts in Illustrator: macOS: kzbin.info/www/bejne/eniwinSaq5mBas0 Windows: kzbin.info/www/bejne/lYOsnox_eMaifNk Another helpful tool is JSX Launcher. Free tool on the Adobe Marketplace. It is like InDesign Scripts panel. I have a script panel tool for Illustrator also but I haven't released it yet. Soon.
@MYSlob
@MYSlob Жыл бұрын
Is there a way to export interactive pdf's?
@wc7
@wc7 Жыл бұрын
InDesign I assume. See below. Compression options medium is enabled. Comment and un-comment another if desired. Also has export background or immediate. I'll add this topic to my list of future videos. var fileOutput = new File(DESIRED PATH AND NAME OF OUTPUT PDF); app.interactivePDFExportPreferences.exportAsSinglePages = false; app.interactivePDFExportPreferences.exportLayers = false; app.interactivePDFExportPreferences.exportReaderSpreads = false; app.interactivePDFExportPreferences.flipPages = false; app.interactivePDFExportPreferences.flipPagesSpeed = 5; app.interactivePDFExportPreferences.generateThumbnails = true; app.interactivePDFExportPreferences.includeStructure = false; app.interactivePDFExportPreferences.interactivePDFInteractiveElementsOption = InteractivePDFInteractiveElementsOptions.INCLUDE_ALL_MEDIA; app.interactivePDFExportPreferences.openInFullScreen = false; app.interactivePDFExportPreferences.pageRange = PageRange.ALL_PAGES; app.interactivePDFExportPreferences.pageTransitionOverride = PageTransitionOverrideOptions.FROM_DOCUMENT; app.interactivePDFExportPreferences.pdfDisplayTitle = PdfDisplayTitleOptions.DISPLAY_FILE_NAME; // app.interactivePDFExportPreferences.pdfJPEGQuality" : PDFJPEGQualityOptions.MAXIMUM; // app.interactivePDFExportPreferences.pdfJPEGQuality" : PDFJPEGQualityOptions.HIGH; app.interactivePDFExportPreferences.pdfJPEGQuality" : PDFJPEGQualityOptions.MEDIUM; // app.interactivePDFExportPreferences.pdfJPEGQuality" : PDFJPEGQualityOptions.LOW; app.interactivePDFExportPreferences.pdfMagnification = PdfMagnificationOptions.DEFAULT_VALUE; app.interactivePDFExportPreferences.pdfPageLayout = PageLayoutOptions.DEFAULT_VALUE; app.interactivePDFExportPreferences.pdfRasterCompression = PDFRasterCompressionOptions.JPEG_COMPRESSION; app.interactivePDFExportPreferences.rasterResolution = 144; // Set resolution here app.interactivePDFExportPreferences.usePDFStructureForTabOrder = false; app.interactivePDFExportPreferences.viewPDF = false; // Export in background // docExport.asynchronousExportFile(ExportFormat.INTERACTIVE_PDF, fileOutput, false); // Export synchronously docExport.exportFile(ExportFormat.INTERACTIVE_PDF, fileOutput, false);
@MYSlob
@MYSlob Жыл бұрын
@@wc7 Yes it is InDesign. When i try this code in InDesign, it gives me an error.
@wc7
@wc7 Жыл бұрын
@@MYSlob I can't help without specifics. "An error" is vague. What is the error message?
@wc7
@wc7 Жыл бұрын
Sorry about that. My fault a typo in the code I pasted. Try this: var fileOutput = new File(DESIRED PATH AND NAME OF OUTPUT PDF); app.interactivePDFExportPreferences.exportAsSinglePages = false; app.interactivePDFExportPreferences.exportLayers = false; app.interactivePDFExportPreferences.exportReaderSpreads = false; app.interactivePDFExportPreferences.flipPages = false; app.interactivePDFExportPreferences.flipPagesSpeed = 5; app.interactivePDFExportPreferences.generateThumbnails = true; app.interactivePDFExportPreferences.includeStructure = false; app.interactivePDFExportPreferences.interactivePDFInteractiveElementsOption = InteractivePDFInteractiveElementsOptions.INCLUDE_ALL_MEDIA; app.interactivePDFExportPreferences.openInFullScreen = false; app.interactivePDFExportPreferences.pageRange = PageRange.ALL_PAGES; app.interactivePDFExportPreferences.pageTransitionOverride = PageTransitionOverrideOptions.FROM_DOCUMENT; app.interactivePDFExportPreferences.pdfDisplayTitle = PdfDisplayTitleOptions.DISPLAY_FILE_NAME; // app.interactivePDFExportPreferences.pdfJPEGQuality = PDFJPEGQualityOptions.MAXIMUM; // app.interactivePDFExportPreferences.pdfJPEGQuality = PDFJPEGQualityOptions.HIGH; app.interactivePDFExportPreferences.pdfJPEGQuality = PDFJPEGQualityOptions.MEDIUM; // app.interactivePDFExportPreferences.pdfJPEGQuality = PDFJPEGQualityOptions.LOW; app.interactivePDFExportPreferences.pdfMagnification = PdfMagnificationOptions.DEFAULT_VALUE; app.interactivePDFExportPreferences.pdfPageLayout = PageLayoutOptions.DEFAULT_VALUE; app.interactivePDFExportPreferences.pdfRasterCompression = PDFRasterCompressionOptions.JPEG_COMPRESSION; app.interactivePDFExportPreferences.rasterResolution = 144; // Set resolution here app.interactivePDFExportPreferences.usePDFStructureForTabOrder = false; app.interactivePDFExportPreferences.viewPDF = false; // Export in background // docExport.asynchronousExportFile(ExportFormat.INTERACTIVE_PDF, fileOutput, false); // Export synchronously docExport.exportFile(ExportFormat.INTERACTIVE_PDF, fileOutput, false);
@wc7
@wc7 Жыл бұрын
I've made a new tutorial specific to exporting interactive PDFs. kzbin.info/www/bejne/e6mul5V9lsuoY8U
@plostyle_
@plostyle_ 2 жыл бұрын
How to get the PDF printing presets list in Illustrator? 🤔 pdfPresets is InDesign specific i guess (it throws an error in Illustrator).
@wc7
@wc7 2 жыл бұрын
The property in Illustrator is app.PDFPresetsList. Note this is an Array of String. The array is just the names, unlike InDesign, the property app.pdfExportPresets is a Collection of PDFExportPreset objects.
@ishtiaqaali
@ishtiaqaali Жыл бұрын
@@wc7 can we select eps files preset too?
@wc7
@wc7 Жыл бұрын
@@ishtiaqaali I'm not aware of an EPS Export preset option in either Illustrator InDesign. It's possible to output EPS from either app, though I don't usually suggest it. PostScript died 20 years ago. I use PDF in its place. But the two apps can still do it if some legacy workflow is involved that requires EPS.
@nirphotoartjaiminbhavsar6782
@nirphotoartjaiminbhavsar6782 2 жыл бұрын
create pdf with print password protect photoshop with script
@wc7
@wc7 2 жыл бұрын
Photoshop can't do it. Doesn't have the property in the PDF save options. But InDesign and Illustrator do. I would use InDesign. Scan a folder of images, and for each, place at 100%, size page to match, and export a PDF of the same name to another folder, with the password set and security enabled. Do you want a tutorial showing how to write a script that does this, or do you just want a finished script?
@nirphotoartjaiminbhavsar6782
@nirphotoartjaiminbhavsar6782 2 жыл бұрын
@@wc7 thanxx sr
@nirphotoartjaiminbhavsar6782
@nirphotoartjaiminbhavsar6782 2 жыл бұрын
@@wc7 You have a script to create a password protect PDF file in illustrator
@nirphotoartjaiminbhavsar6782
@nirphotoartjaiminbhavsar6782 2 жыл бұрын
I have a script from Illustrator which saves PDF file with password but it saves in high quality. I want to save it in medium quality.
@wc7
@wc7 2 жыл бұрын
@@nirphotoartjaiminbhavsar6782 Send me the script and I'll be happy to look at it. Could be an easy edit. Go to my channel page, about tab, for where to contact me.
@herberttsujidasilva4098
@herberttsujidasilva4098 Жыл бұрын
Hi! Great video! Please, how can I get a File from Folder btnFolderInput.onClick = function () { var f = Folder.selectDialog(); if (f) { txtFolderInput.text = f.fullName
@wc7
@wc7 Жыл бұрын
That code is for getting a Folder object the user selects. To get a file use the File method File.openDialog(). If that's what you're trying to do. To get one of the files in the folder, use the Folder method Folder.getFiles(). In the example above it would be f.getFiles() because the var f is the Folder object returned by Folder.selectDialog(). getFiles() returns an array, each element a File object. Refer to the video description there are many links to reference materials that explain all of this and more.
@herberttsujidasilva4098
@herberttsujidasilva4098 Жыл бұрын
@@wc7 Hi! I will try! Thank you! Very much!
Adobe Script Tutorial 3 Add Progress Bar
7:51
William Campbell
Рет қаралды 3,9 М.
Adobe Script Tutorial 1 Script Structure and Basic Interface
13:33
William Campbell
Рет қаралды 27 М.
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 109 МЛН
I Turned My Mom into Anxiety Mode! 😆💥 #prank #familyfun #funny
00:32
Adobe Script Tutorial 5 Photoshop Process Folder and Save JPEGs
10:45
William Campbell
Рет қаралды 4,4 М.
Longtime Dem senator ousted: 'America won last night'
4:55
Fox News
Рет қаралды 186 М.
Java Example Questions | Refactoring
3:53
CIS Tutor Hub
Рет қаралды 51
InDesign Script PDF Place and Export
10:07
William Campbell
Рет қаралды 7 М.
Secure Your API: Role Based Access Control with JWTs
4:03
dolearning (Kevin Cunningham)
Рет қаралды 67
Batch Automation Plugin for Photoshop | Download Now!
2:45
ExtendScript Debugger Setup - Tutorial
2:43
Scripted Penguin
Рет қаралды 6 М.
How to Add a Drop Down Menu Field for Fillable PDF in Adobe Acrobat Pro DC ✅📑
4:59
Essetino Media - Create Profitable Content
Рет қаралды 64 М.