Find the alert and multi layer names
Hi all
I'm trying to export pdf using layer of condition names, if this layer should alert the names match, otherwise the pdf export.
If only a single layer it works fine, when multi layers does not.
my code is always alert if layer names are correct, what is the problem in my code, anyone can correct.
help would be appreciated
LY = app.activeDocument.layers.everyItem () .getElements ();
for (i = 0; i < ly.length; i ++) {}
If (ly [i] .name! = "BaseArtwork", "MagentaVariables", "PreprintedText", "OtherVariables") {}
Alert ('layer names check'), exit();
} else {}
var myJobOptionName = "press [quality]";
var myOutFolderPathName = ' / users/wleastudio/Desktop/Watched folder/Out / ";
var myPDFFilePath;
var InDJobOption = app.pdfExportPresets;
myPDFFilePath = myOutFolderPathName+"/"+app.documents[0].name.split(".indd") [0].split(".) INDD") [0] +".pdf ";
App.documents [0] .exportFile (ExportFormat.pdfType, myPDFFilePath, myJobOptionName, false);
}
}
Thanks in advance
Steve
Hi Steve,.
Try now.
Array.prototype.contains = function(k) { for(var i=0; i < this.length; i++) { if(this[i] === k) { return true; } } return false; } var _layers = [ "BaseArtwork", "MagentaVariables", "PreprintedText", "OtherVariables"]; var match = []; var ly = app.activeDocument.layers.everyItem().getElements(); if(ly.length == 4){ for (i=0; iKind regards
Cognet
Tags: InDesign
Similar Questions
See questions of title.
If you mean Microsoft Outlook...
Please repost to the Microsoft Office Outlook forum:
http://answers.Microsoft.com/en-us/Office/Forum/Outlook?page=1&tab=noIf you mean Windows Mail...
Please repost in Windows Vista, networking, email and online
http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-networking?page=1&tab=noIf you mean Outlook Express...
Please repost on Windows XP, networking, mail, and Getting Online forum
http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-networking?page=1&tab=noWhere can I find the clock digital multi AGS for the vista sidebar?
I recently had to smoothing on my computer and do a vista reload fee. now, I'm trying to find the clock digital multi AGS (the most useful for the windows vista sidebar gadget was by far, in my humble OPINION). Where can I find the clock digital multi AGS for the vista sidebar since microsoft went down the gadget site?
Thank you
HelloAs the gadget site is down you can't find the clock digital multi AGS for the vista sidebar.
You can check the link for help:
Toshiba 40TL938G - find the date and time settings
I have a 40TL938G and I can't find the date and time settings.
Can someone help me?SSY
I read the manual and it does ' t say anything about these settings.THX
In the settings of digital television, you should see the option called local time settings
To display the time on the TV you press the sign of the small clock on the remote control while watching a normal TV show (analog only)
Hello. I have two markers. It is stationary and the other is moving (app.jpg). How can I find the centers and angles shown in picture (app.jpg)?
How to find the utilities and windows drivers VGN-CR36G 8?
Hello
I use laptop Vaio VGN-CR36G with vista ultimate. Now, I want to install windows 8 enterprise edition.
But I can't find the drivers and utilities on the site of sony vaio.
But my product is compatible for windows 8 OS.
Here is the link below:
http://www.Sony-Asia.com/support/product/VGN-CR36G
Can someone please help me to download all drivers and software?
Thank you
Hi Whiteeasy.
This model does not support Windows 8 operating system which you can confirm from the link below.
If my post answered your question, please mark it as an "accepted Solution".
How to find the Maxima and Minima for each column of a 2D array?
Hello
I have a 2D chart and I would find the maxima and minima of each column of the 2-D table. Even though I know how to get maxima and minima for the whole picture but don't know how columnwise? Any ideas please?
Thank you
Rohit
Hello
@Smercurio-What you said is true, I should have shown using automatic indexing enabled which is really excellent choice. I just tried to show in a very simple way.
Anyway, here's the best way
How to find the maximum and minimum of a waveform between cursors
Hello!
Does anyone know an easy way to find the maximum and minimum of a waveform between two sliders?
Kind regards
Andreas
Hi Andreas,
attached, you get an example of it in MeasurementStudio.
Cocomputer cannot find the printer and I do not have a disk for it
Original title: printer SUPPORT
my computer cannot find the printer and I do not have a disk for it
Then, download and install the appropriate drivers on the printer manufacturer's support web site.
When I send an email or an attachment it happen as the benefits of discovery as the sender and not my name, how can I change this? his strange huh?
I never stay connected to my email, I actually get hacked somehow I have change my password often enough
Hi darenlysne,
It sounds like you have the email account of incorrect installation and hurt the server info.
Provide the program that you are using and we can go from there, or contact your ISP.
B Eddie
I have a U135 DX netbook with a built-in webcam. How can I find the cam and I press those keys for easier access please PS I'm not a manual.
You can get a manual here.
Query to find the Pages and the list of permissions associated with a particular role in PS
I want a query to find the Pages and the list of permissions associated with specific roles in PS.
For example, if we see the role of manager accounts payable, it conatins Pages and the list of permissions.
But, to get everything in EXCEL sheet by Manuel priocess's BIG job. So, can someone give me the query.
Please try under queries
The roles assigned to the list of Perm:
SELECT B.ROLENAME
OF PSCLASSDEFN A, PSROLECLASS B
WHERE (A.CLASSID = B.CLASSID
AND A.CLASSID =: 1).
List of Perm pages can access:
SELECT B.MENUNAME, B.BARNAME, B.BARITEMNAME, B.PNLITEMNAME, C.PAGEACCESSDESCR, B.DISPLAYONLY
OF PSCLASSDEFN A, PSAUTHITEM B, PSPGEACCESSDESC C
WHERE (A.CLASSID = B.CLASSID
AND A.CLASSID =: 1
AND B.BARITEMNAME > ' '
AND B.AUTHORIZEDACTIONS = C.AUTHORIZEDACTIONS)
Where can I find the vertical and horizontal spaces of you or margins on CC Version?.
Where can I find the vertical and horizontal spaces of you or margins on the CC Version? I need to leave a few spaces pixels around an image, but I can't find it on this new version.
Thanks in advance
In the CSS designer under window > CSS designer or SHIFT + F11
Choose the item that you are working with and press on the + in the selectors of section
Then in the Properties section, make sure that the first tab is selected (Layout) and scroll down to the margin
Set it to a number of pixels that you want (for example, 10px)
How to reassign another employee for the account and remove my name
I'm no longer in the Department and should reassign them to another employee for the account and remove my name. How can I do this?
[Personal information deleted by Moderator]
Team license links that can help
-https://helpx.adobe.com/contact/creative-cloud-teams.html using the team
-manage your account http://forums.adobe.com/thread/1460939?tstart=0 team
To find the months and days between 2 dates
Hello
I want to find the months and days between 2 dates.
For example.
1 - Date: August 25, 2013
2 - Date: October 23, 2013
If we consider each month 30 days, it should give
August 25, 2013 to August 30, 2013 = 6 days
01-Sep-2013-30-Sep-2013 = 1 month
October 23, 2013 to October 30, 2013 = 8 days
Total = 1 month and 14 days.
Kindly help as soon as possible.
Thanks and greetings
Suresh
Assuming that d2 > d1,.
where d)
Select sysdate d1, sysdate + 56 double d2
Union all select to_date (March 1, 2013 ',' dd-mon-yyyy "") d1, to_date (March 31, 2013 ',' dd-mon-yyyy ') d2 double
Union all select to_date (5 February 2013 ',' dd-mon-yyyy ') d1, to_date (March 31, 2013 ',' dd-mon-yyyy "") double d2
Union all select to_date (February 25, 2013 ',' dd-mon-yyyy "") d1, to_date (March 23, 2013 ',' dd-mon-yyyy ') d2 double
Union all select to_date (February 25, 2013 ',' dd-mon-yyyy ') d1, to_date (March 31, 2013 ',' dd-mon-yyyy "") double d2
Union all select to_date (August 2, 2013 ',' dd-mon-yyyy "") d1, to_date (29 October 2013 ',' dd-mon-yyyy ') d2 double
Union all select to_date (February 1, 2013 ',' dd-mon-yyyy "") d1, to_date (May 31, 2013 ',' dd-mon-yyyy ') d2 double
Union all select to_date (25 August 2013 ',' dd-mon-yyyy "") d1, to_date ('03-Sep-2013', 'Mon-dd-yyyy') d2 double
Union all select to_date (July 30, 2013 ',' dd-mon-yyyy "") d1, to_date (August 31, 2013 ',' dd-mon-yyyy ') d2 double
Union all select to_date (July 31, 2013 ',' dd-mon-yyyy ') d1, to_date (August 30, 2013 ',' dd-mon-yyyy "") double d2
Union all select to_date (July 31, 2013 ',' dd-mon-yyyy ') d1, to_date (3 August 2013 ',' dd-mon-yyyy "") double d2
Union all select to_date (3 July 2013 ',' dd-mon-yyyy "") d1, to_date (August 31, 2013 ',' dd-mon-yyyy ') d2 double
Union all select to_date ('31-08-2013', ' dd-mm-yyyy'), to_date('05-10-2013','dd-mm-yyyy') of the double
Union all select to_date ('05-02-2013', ' dd-mm-yyyy'), to_date('31-03-2013','dd-mm-yyyy') of the double
Union all select to_date ('05-02-2013', ' dd-mm-yyyy'), to_date('05-03-2013','dd-mm-yyyy') of the double
Union all select to_date ('05-02-2013', ' dd-mm-yyyy'), to_date('05-02-2013','dd-mm-yyyy') of the double
)
Select d1, d2,
1 + 30 * trunc (months_between (d2, d1)) + LESS (extract (day of d2), 30)-LESS (excerpt (d1 day), 30)
+ CASE when extracted (d2 day)< extract(day="" from="" d1)="" then="" 30="" else="" 0="" end ="">
d
D1 D2 DAYSBETWEEN
----------- ----------- -----------
October 10, 2013 5 December 2013 56
March 1, 2013 30 March 31, 2013
5 February 2013 March 31, 2013 56
February 25, 2013 March 23, 2013 29
February 25, 2013 March 31, 2013 36
August 2, 2013 29 October 2013 88
February 1, 2013 may 31, 2013 120
August 25, 2013 03 - Sep-2013 9
July 30, 2013 31 August 31, 2013
July 31, 2013 August 30, 2013 31
July 31, 2013 3 August 2013 4
July 3, 2013 August 31, 2013 58
31 August 2013 5 October 2013 36
5 February 2013 March 31, 2013 56
5 February 2013 March 5, 2013 31
February 5, 2013 February 5, 2013 1
In my view, which corresponds to your rules.
Maybe you are looking for
-
Cannot start the disk operating system external hard
Hi I just bought a macbook air 13 mid-2013, and has decided to clone the hard disk of my old white macbook mid-2006 for an external hard drive, I cloned it perfectly with superduper!, the problem is when I try to start the external hard drive in the
-
Keyboard layout is completely false on my Tecra
Installed a computer laptop "new" with the United Kingdom in Win Xp pre-installed. Tried to connect. The layout of the keyboard is completely false. N = b, d = character e key character key.After some trial and error found the right keys to connect.
-
Application stops working out - Windows 10, CVI 2013
Hello I recently moved from Win 7 to 10 to win. Now, all the applications I built under Win 7 or rebuilt under Win 10 "stops working" at the exit. I found some posts that were similar and posted one, but got no response. As another user has pointe
-
I often get redirected to another site when I try to access the websites and he prays me click on elements of research. How can I fix?
-
"My Dell downloads" pop-up - keeps coming back. What should do?
Can't seem to get rid of a popup called my Dell downloads. Can you help me? Thank you...