Script does not work on recent Macs
Last year, I wrote a script to Illustrator (that something sticks in several files) for my colleague who works remotely. It has worked well.
Recently, it has updated its Mac OS 10.8.5 (but always use Illustator CS5) and now the script does nothing - dialog boxes coming upwards, but instead of paste the content and save the new document, that he died. Since it is not in my office, it seems difficult to fix this problem.
I want to make sure I'm not missing something big and easy, as OS 10.8 have broke something in the script. Although it seems unlikely to me, is - it possible that his Mac is the problem? Any thoughts?
Here's the script:
/* HOW TO USE
SETUP: Have PDFs in one folder. Create a directory in that same folder called "saveloc"
IN ILLUSTRATOR: 1. Have the document open with the object you want pasted into each file selected 2. GROUP selection 3. Copy the selected item 4. Run the script: File->Scripts->Other scripts (choose this script from selection window */ // this var holds the selection that was copied var docSelection = app.activeDocument.selection; // if there is a selection made... if ( docSelection.length > 0 ) { // brings up dialog box which asks you to select folder of files to modify var fold = Folder.selectDialog( "Choose the folder CONTAINING the files you wish to modify", "~" ); // all the files in the chosen folder will be stored in "files" array files = new Array; // looking only for PDFs in chosen folder fileType = "*.pdf"; // fill array with PDFs files = fold.getFiles( fileType ); // loop through all the chosen PDFs (that populate "files") for ( i=0; i < files.length; i++ ) { // opens each document in selected folder app.open(files[i]); // add a new layer app.activeDocument.layers.add(); // paste in what's in the clipboard app.paste(); // assign the pasted stuff a name pasted = app.activeDocument.selection; // position pasted stuff [x, y] pasted[0].position = [(19.215),(993.523)]; // put the layer with the pasted item at the bottom of the layer stack app.activeDocument.activeLayer.zOrder(ZOrderMethod.SENDTOBACK); // stores name of the open doc var dsname = app.activeDocument.name // gives the new file name (same as old) a path to save location var saveName = new File (app.activeDocument.path + "/saveloc/" + dsname); // some PDF saving options are set... saveOpts = new PDFSaveOptions(); saveOpts.compatibility = PDFCompatibility.ACROBAT6; saveOpts.generateThumbnails = true; saveOpts.preserveEditability = false; // "false" keeps file size low // save it! app.activeDocument.saveAs( saveName, saveOpts ); // close active doc app.activeDocument.close(); }; // ...if no selection is made, send up prompt } else { alert( "Select an object in this file, and then COPY it" ); };
I wonder if the problems you are having are back somehow to this topic or similar?
http://forums.Adobe.com/message/4089226
Tags: Illustrator
Similar Questions
-
pictures 1.0.1 does not work in my mac
pictures 1.0.1 does not work in my mac when I open it I see the welcome message and the Tower, but when I click start it just stays for a long time as if it was loading, but nothing happens. Even I can't close it unless I go in mac preferences, and then click Exit forze then it closes.
It worked before?
You is a photo for Mac forum
This is the Office Mac Pro forum. I asked that your post moved to the forum of Photos for Mac or another appropriate forum.
-
Tiara startup script does not work when running file associated with
Hello
I have a startup script that works correctly with tiara itself, however when I open a file associated with tiara (tdms files) the startup script does not work. Is it possible to ensure that the script runs without worrying? Thanks for the help!
Bala
Hi Bala,
Depending on your use case, I suggest you call the next VI, which comes with LabVIEW, after your purchase VI is the creation of the data file. Just pass the data file path in the upper part of entry and your path to the VBScript file in less than entry.
"C:\Program Files (x 86) \National Instruments\LabVIEW 2013\vi.lib\ExportToExcel\DIAdem report Assistant Start CSC.vi '.
Brad Turpin
Tiara Product Support Engineer
National Instruments
-
my printer does not work with my Mac, but because our hp computer
We will restore the print system:
-Sys Prefs, Print & Fax
-Right (control) click inside the box that lists your printers and select Reset Printing System.
WARNING - This will remove ALL your printers!
-Select the sign + to add again. Search for the printer, select it, and wait until the button 'Add' becomes available. Until it clicks. -
How to import the mp4 files, it does not work on my mac
How to import the mp4 files, it does not work on my mac
If you try to import a video to use as a guide in your timeline, the video must be H.264 with AAC audio. You cannot use the other MP4 videos with other codecs (such as the MPEG-4 video codec).
-
Point culminating script does not work correctly
I try to get the yellow filled rectangle to become visible behind the digital field when the numeric field is greater than "1". Can anyone help to see why my script does not work?
https://Acrobat.com/#d=MJObRvA * l9tbFmrlHcMHUA
Thank you
-Don
Hi Don,
Your code does not work because because it is not actually executed. It's because of put you the code on the text box itself output event and this would require the user to move to that field and then leave the field and then run the code.
I would recommend you change you form to add this code at the end of the code that runs your "addAttachment" button and then the form works as I expect.
If (NumberOfAttachments.rawValue > 1) {}
RectangleYellow.presence = "visible";
}
Hope this helps
Malcolm
-
Describe in SQL script does not work as you wish
Hello
Could you please help me determine why this script does not work.
He said that the date is not set.
Thanks in advance
set p_day_sh = & data_sh
set p_rowid_sh = & rowid_sh
declare
date of p_day_sh;
p_rowid_sh varchar2 (18);
Start
If & p_day_sh is not null then
trains t update
Set t.offdate = to_date ('& p_day_sh ',' DD-MM-YYYY HH24:MI:SS')
where t.rowid = '& p_rowid_sh';
commit;
end if;
end;Hello
In a command SET, if the string to the right of the = sign contains spaces, then it must be in quotes: in the case otherwise, only the first group of characters, white space will be affected.
For example:define p_day_sh = &data_sh
If & data_sh has this value:
11-06-2009 06:25:09
then the DEFINE command is
define p_day_sh = 11-06-2009 06:25:09
and & p_day_sh Gets the value of the part to the workspace:
11-06-2009
Either eliminate the space, Alex has proposed, or place the chain on the right side of the sign = in double - quote:
define p_day_sh = "&data_sh"
The double quotes will not change the meaning if & data_sh contains no white space.
-
Properties property example javascript in Adobe introduction to scripting does not work?
I am completely new to scripting so I thought I would start with the guide Adobe pdf script.
Page 18 it gives examples of 3 ways to use properties. The first 2 work very well, but the third simply ignores the part of the properties even when I directly copy paste it.
It's the Tip:
JS also provides a properties property, which allows you to set multiple values in a statement. You
Place all of the values between the braces ({}). Within the braces, you use a colon (:)) to separate one)
name of the property of its value and the pairs of value of property name/separation of property by using a comma (,).
myDoc var = app.documents.add)
myLayer var = myDoc.layers.add)
myLayer.properties = {name: "my new layer", visible: false}
So I know about Photoshop, you must use ArtLayers, but even in Illustrator it added another layer without renaming or the definition of visibility.
Anyone has an idea why this does not work?
That might work for Illustrator but it does not for Photoshop. I'll see if I can find this owner of documents and bring them to clean it. See my post above for links to the Photoshop documents. You can try to post your Illustrator questions or comments on the Illustrator scripts forum.
-
I installed Revel app on my Mac, iPad, and iPod Touch. All devices are to date. Works on iPad and iPod. Revel does not work on Mac. Loads, but does not display the photo and does not respond to something.
What should I do now?
Hello Lippoe
The Revel app on your mac has ever worked before? Given that the app is being inadmissible, I would say to uninstall and reinstall the application.
Here is the instrucations to achieve this.
-Uninstall the app
-Click on the Finder menu go > go to folder > and enter: ~/Library/Containers
-Delete this folder and its contents: ~/Library/Containers/com.adobe.Carousel.mac
-Re-install goto Adoberevel.com app to install.
-Connect again
Let me know if it works for you
Thank you
Scott
-
Java script not working not not in 1 pdf, but the same script does NOT work in other
Dear Experts,
I have a problem with java script.
I created 2 PDF files with the same name under the names of form and shape.
I wrote a javascript script and the script seems to work in a (Demand2.pdf) and DOES not work in others (exemple.pdf).
The link for Demand2.pdf is
https://Acrobat.com/#d=XIydWx1RIU4oNdTySHtHfgand the link for exemple.pdf is
https://Acrobat.com/#d=sKPRs2dtDY57RSvMVtnh3wCan you please guide me on this.
Thank you very much
BookFans
Hello
The second file (exemple.pdf) is saved as Static. The script changes the visual appearance of the form (show and hide objects). This requires the file to save dynamic PDF format. This option is available for registration - as the dialog under the file name.
Good luck
Niall
-
RMAN script does not work as a cron job, but works when explicitly executed
Oracle 10 g 2 10.2.0.1, Oracle Enterprise Linux 4 U7.
I've added a task to crontab of the oracle user who looks like the following:
the tracks work as expected but the rman command never works the inside of cron, it always returns code 1, but if I call the script itself from the command line#ORACLE_HOME,ORACLE_SID and PATH are set in the user's profie TAG=`date|awk '{print $1"_"$2"_"$3}'| tr [:lower:] [:upper:]` echo "backup started on`date` "> /home/oracle/rman.log rman target / LOG='/home/oracle/rman_run.log' << EOF run{ sql 'aler system switch logfile'; backup full database tag='$TAG' include current controlfile; delete noprompt obsolete; } exit; EOF echo "rman finished, returned $? " >> /home/oracle/rman.log echo "Backup ended on `date` " >> /home/oracle/rman.log
It works smoothly and the backup is performed.
what I am doing wrong?what I am doing wrong?
no no no ORACLE_HOME and ORACLE_SID is defined in script
The script does not source in the script of environmental requirementsenv | Tri o /tmp/capture.env
above indicates how deficient the script environment cron is really
-
script does not work in firefox, but in IE, chrome, and safari
I have a landing page with a script of web form, www.wholewoman.com/newpages/landing/helpforcystocele.html. the script does not appear in firefox. In addition, any of our videos (served from kaltura (CDN) show up in firefox.) nor is the registration of scripts for our drupal forum. the good news is that there are a lot of firefox users worldwide. the bad news is that none of them can opt in my list, watch my videos or register for my forum. Help!
With a .html page, it is impossible to include the HTTP headers in the page. It should be in a file external to the page setup (unless you have a very unusual configuration on your server).
On an Apache Server, the headers are sometimes defined in a file .htaccess at the root of your site. If you view the site in an FTP program or extension, make sure that hidden files are displayed.
-
The link to the minimum configuration for Firefox 4 beta takes you to a page that gives you the requirements for Firefox 3.6 instead. I guess that the requirements for the beta are different, that I can't seem to install the beta on my Mac. Where can I find the beta version of system requirements?
Firefox 4 will not work on the Mac PPC, for Mac it needs the Intel processor. There is an accumulation of third parties based on Firefox 4 beta, which should work on Mac PPC, for details, see http://www.floodgap.com/software/tenfourfox/
-
I reloaded Firefox as suggested. I clicked "Always" in System Preferences of scrolling. But none of these work. If Firefox does not resolve the problem of scrolling for Mac OS X, I have to use Safari as my main browser, because scrolling works there. I have used Firefox for almost 10 years, but this problem is very frustrating.
A duplicate was question here: http://mzl.la/1hlpGi0
It seems like turning off "Smooth Scrolling" works.
-
Why my scripts does not work when scheduled in the calendar?
Hello
I created scripts to start and stop onedrive using the "Tell" command
When I plan their schedule they fail to run. They were created as programs and work if I launch them manually.
Is there something that I am missing? Or is there a better way?
PS: Scripts are the OneDrive to run after hours to prevent it completely hogging my bandwidth to broadband.
If there is a better way to control the use of bandwidth for OneDrive I would be grateful.
See you soon
Memn
A workflow schedule alarm will not work unless it is attached to a local calendar ("on my Mac"), instead of a network such as iCloud calendar.
Maybe you are looking for
-
Can I get the new version to look like an older Firefox?
I like Firefox to death, but today he planted a lot and forced me to reset it, leaving me with the new Chrome theme that I hate. Is it possible that users can do the new look like an older version of Firefox, because Mozilla do not recommend you to d
-
Satellite X 200 - 25 G: problem of Flash Cards - Run time error file TCrdMain.exe
Hello world! I don't know how, but I have a problem when my windows Vista from (running)The problem is with these file TCrdMain.exe this file is for Flash cards, end running every time when I put my PC on (with windows startup). But I see this proble
-
Why used my load in Windows 7 older flight sim?
Hey, my old air combat Simulator (IL2 Sturmovik) does not load on my laptop that is running Windows 7. When I insert the CD in the drive nothing happens, it is simply the same noise again and again. When I try to open it manually, nothing is either
-
How to connect the ButtonClick events to NavigationPane.popAndDelete within QML
Hi all I know to connect my click event of the button to NavigationPane.popanddelete in the native SDK, I want to implement this feature in QML, how to implement it. My struct QML is something like this: P MyHeader.QML Container{ Button{ objectName:"
-
You need to add a 3rd WAP to existing small business network. Where I start?
The network has 26 ports Cisco switch and 2 existing WAPs, 1 of which is an air 1040, and the other I'm not sure but it resembles that of other. I need to add a 3rd WAP for a small room. I was going to use an other cisco 1040 air, but I don't know