Hey guys, I am new to javascript and I am trying to figure out how to add two spot colors to the active document. I am trying to get it to detect weather or not the spot colors are already in the document, and if they are not, it will proceed to create th

Here's what I have so far.
var docRef = app.activeDocument;
if (docRef.swatches.getByName ("CutContour") === 'undefined') {
var spotNameCC = "CutContour";               
var cmykColor = new CMYKColor();
cmykColor.cyan = 0;
cmykColor.magenta = 100;
cmykColor.yellow = 0;
cmykColor.black = 0;
// Create Spot
var spot = docRef.spots.add();
spot.color = cmykColor;
spot.colorType = ColorModel.SPOT;
spot.name = spotNameCC;
//var spotNameW = "WEED (r)";
// Create CMYKColor
/*var cmykColor2 = new CMYKColor();
cmykColor2.cyan = 50;
cmykColor2.magenta = 0;
cmykColor2.yellow = 50;
cmykColor2.black = 0;
// Create Spot
var spot2 = docRef.spots.add();
spot2.color = cmykColor2;
spot2.colorType = ColorModel.SPOT;
spot2.name = spotNameW;
Let me know what I did wrong lol I know it has to do with the detecting part. Also, if anyone knows any good websites to learn javascript I would be very thankful. I am not sure what a lot of the syntax means. Thanks!!

Never mind I figured it out. Someone posted a similar question a few months ago on here, damn this forum is awesome wish I had known about it sooner. Sorry if I wasted anyone's time.

Similar Messages

  • I am trying to figure out how to clear my massage backlog of messages on Messages for Mavericks OS. I believe a lot of space is taken up by this running in the background keeping recent messages loaded. Especially with all the gif files I've been sending

    I am trying to figure out how to clear my massage backlog on Messages for Mavericks OS. I believe a lot of space is taken up by this running in the background keeping recent messages loaded. Especially with all the gif files I've been sending. Is there a way to select all and deleter? Please help! Can't find anyone who looks to do the same just lots of manuals for using the app on iphones and ipads.
    Thanks

    I am trying to figure out how to clear my massage backlog on Messages for Mavericks OS. I believe a lot of space is taken up by this running in the background keeping recent messages loaded. Especially with all the gif files I've been sending. Is there a way to select all and deleter? Please help! Can't find anyone who looks to do the same just lots of manuals for using the app on iphones and ipads.
    Thanks

  • Im making a slide show on Aperature and Im trying to figure out how to add music to it.  Does anyone know how to do this?

    I need to add music to my slideshow on aperature, can anyone help me with this?
    Thanks.

    There are basically two methods to add music to a slideshow.
    The first method, that Frank Caggiano described, will let you set a background sound track, that will play during the whole show. You will see your background clip fill the filmstrip with a green shadow.
    A second method is, to drag short sound clips directly onto single slides - this will let you add special sound effects at certain moments and will result in secondary audio tracks, that you can adjust in length. These secondary tracks are displayed as thin bars below the slides. (a screenshot from the User manual)
    See this section in the user manual for more detail:
    Adding Music and Audio to Slideshows
    Regards
    Léonie

  • I am using numbers in the new iWork. Just bought it 10 days back. I am not able to figure out how to add serial umbers from 1 to 100( for example) also i need to freeze the top header like in windows so that we can browse down without the heading going of

    i am using numbers in the new iWork. Just bought it 10 days back. I am not able to figure out how to add serial umbers from 1 to 100( for example) also i need to freeze the top header like in windows so that we can browse down without the heading going off. Can some one help?

    Hi Jay,
    Be aware that "Freeze Header Rows" and "Freeze Header Columns" apply only to rows and columns that are Header rows or Header columns. You can have up to five Header rows, Five Header Columns (and five Footer rows) on a Numbers Table.
    "Header rows" is a special designation. Besides being able to be frozen, Header and Footer rows are not included in formulas referencing whole columns, making it possible to place formulas such as =SUM(B) at the top (or bottom) of column B without causing a self-reference error, These designated rows are also not included in sorts of the rows in a table.
    Regards,
    Barry

  • I am trying to figure out how I can get my library transferred to the Honda Accord 16gb hard drive?  I have purchased music of off I tunes and do not have the physical CD.  Anybody with any suggestions on how this can be done?

    I am trying to figure out how I can transfer my library to my new 2014 honda accord that has an internal 16gb hard drive.  The manual for the car says that it needs to be original CD's but I have purchased alot of the albums/songs I have from I tunes therefore not having the original CD.  Can someone help me with this as I dont want to load each CD into the player to record and have some albums that I purchased off of I tunes that I would like to be on the hard drive.
    Thanks Any Help is appreciated.

    If Honda says you need the original CDs, you need the original CDs.

  • I recently set up multiple accounts and when I was trying to figure out how to share files I messed up something in my documents. Everytime I open a doc from the ADMIN account, a box pops up that says "The file is not in the correct format" how to fix?

    I recently set up multiple accounts on my imac, When I was trying to figure out how to share the documents I must have done something wrong. When logged into the Admin account, I open up any document and I get a message box that says, "The Document could not be opened. The file isn't in the correct format. The file might be corrupted, truncated, or in an unexpected format." What did I do and how do I fix it?

    Without knowing what you did it is impossible to give advice on how to correct it.
    If these were files you copied over from some other system then just Re-Copy them replacing the ones that are corrupted.
    Other then that I suggest you Wipe the drive and start over with a clean reinstall of the OS and programs. Then if you want to share files to All Accounts place those files in a folder in the ROOT of the drive.

  • Photostream Issue - I have had several phones over the years all backing up via iCloud/Photostream. It seems that the oldest of my photos and videos are simply gone and I cannot seem to figure out how to get access to them. Why is this happening?

    Photostream Issue - I have had several phones over the years all backing up via iCloud/Photostream. It seems that the oldest of my photos and videos are simply gone and I cannot seem to figure out how to get access to them. Why is this happening? Is there anything I can do to get them back? I'm freaked out by the thought that I am paying for what I thought was a safe place for my photos to be stored and accessed later but now see that there are nearly 500 pictures/videos gone from my photostream folder. Any help would be greatly appreciated. Thank you. - Michael

    Hi newmarket,
    Photo Stream is not a respository for archiving photos. It is a cloud storage device that will store the last month or last 1000 photos taken by any device on the same Apple ID, and then will "share" those photos with all other devices that have Photo Stream turned on,and that are logged onto the same Apple ID.
    iCloud backups will contain all of the photos that were on your camera roll the last time you backed up your device.
    If you have photos outside of the Photo Stream parameters, and they are not all on your current camera roll, then you have no way to retrieve them unless you have imported them to the computer you sync with or have uploaded them to some other cloud service like DropBox.
    Sorry,
    GB

  • Most of my my target audience are not familiar with iTunes, so I am trying to figure out how to explain how to rate it. What's the fastest way to say it to the iTunes-newbie?

    Most of my my target audience are not familiar with iTunes, so I am trying to figure out how to explain how to rate it. Is this the shortest way? “Open iTunes on your computer, click on iTunes Store and search for my podcast. You’ll see it at the top of the results. When you click on it, you’ll see “Write a Review” and will be able to submit your comments and ratings.” Right now they find my podcast because they are on my mailing list, not through iTunes. It would be easy if I could just say, "Go to iTunes.com" or "Go to my web site" - but there are sooooo many steps! Help! Thank you,
    Milana

    There is another trick - if you give them this URL:
    itpc://feeds.feedburner.com/RecurringRevenueRevolutionPodcast
    (note itpc not http)
    it will subscribe them directly to your feed in iTunes, but it does depend on their having iTunes installed (and in Windows set as the application to use with 'itpc'), otherwise they will get an error message, so it's a slightly double-edged weapon. You could them the link and say 'subscribe in iTunes' as an alternative to the iTunes Store page.

  • Hi, I have a Apple TV and we are trying to figure out how to transfer the iPad to our tv. Any ideas? Thanks

    Hi, I have a Apple TV and we are trying to figure out how to transfer the iPad to our tv. Any ideas? Thanks

    You can connect via a cable or wireless using an Apple TV.
    http://ipad.about.com/od/iPad_Guide/a/How-To-Connect-Your-Ipad-To-Your-Tv.htm
    iPad Accessories: Connections for a TV or Projector
    http://www.dummies.com/how-to/content/ipad-accessories-connections-for-a-tv-or-p rojector.html
    You may be interested in AirPlay on the Apple TV:
    Apple - AirPlay - Play content from iOS devices on Apple TV
    http://www.apple.com/airplay/
    Alternately, there are Apple Digital AV Adapters for hardwired connections:
    iOS: About Apple Digital AV Adapters
    http://support.apple.com/kb/ht4108
    Look at the Apple TV manual
    http://support.apple.com/manuals/#appletv
     Cheers, Tom

  • My old phone broke and I am having trouble figuring out how to restore my contacts on my "new" phone (LG ENV2 Black)...

    My old phone broke and I am having trouble figuring out how to restore my contacts on my "new" phone (LG ENV2 Black).  Apparently the phone is so old that I am unable to install Backup Assistant on it, which sucks.  I have all my old contacts saved on my computer as a CSV and also another copy on a micro SD as VCF.  I have tried moving the CSV from my computer to my ENV2 via both Bluetooth and USB cable, but had no luck with either of those.  I also tried to pop the micro SD into the ENV2, and although I can load all my old pictures/videos/etc. from the micro SD, I do not seem to be able to restore the contacts from card.  I know there has to be some way to manually transfer these files; the contacts are still on my old phone as well; but I was unable to use the transfer wizard for that because my old phonedoesn't seem to be supported by that (Pantech Jester 2)

    Google a program called bitpim, that might do what you want.  Never used it but it's been talked about on the forums.  Other than that you might have to input them manually.  Mary

  • I have recently had to fire my web designer who was using iWeb.  Now I'm trying to figure out how to get the site to open in iWeb on my new MacBook Pro.  Is there a way?

    I have recently had to fire my web designer who was using iWeb.  Now I'm trying to figure out how to get the site to open in iWeb on my new MacBook Pro.  Is there a way?

    Firstly iWeb CAN'T IMPORT any kind of published html code as it has no import facility.  You can however add html code, javascript and css by selecting the html snippet and placing it on your page the entering the code in here and clicking on Apply.  You DO NOT create a shape as you say - you use the html snippet and place your code in there.
    There are not really a lot of ways in which you can write code - if you want to enter small amounts of code, then you would use an ordinary text editor to do this such as Text Edit on a Mac or Text Wrangler.  If you want to add code to iWeb like this, then you would either use the html snippet method in iWeb itself or you would have to publish the site to a local folder from iWeb and open the relevant html page with a text editor and add the additional code in this way and then publish.  However, if he decided to add the code with a text editor, then you would have to upload the pages directly to the server using an ftp client - if you try to upload the site directly from iWeb, all the extra code will be overwritten.
    As for checking whether the site was created using iWeb, all you need do is view the site in Safari and then click on View and then select View Source Code and it will tell you.
    Even thoough extra code was added to the site and he might well have done this by publishing to a local folder and adding the code with a text editor, he should still have the domain file for the site too.
    Ask again.  I'm sure that for adding quick code, most would not want to use programmes such as Dreamweaver, but a simple text editor will suffice.  As OT already said, if he claims that he does not have the domain.sites file, then try Flux 4 which is a web design programme and has full import facilities.  At least this way, if he just gives you the published version of the site, you have some way of opening it.
    You can download a free trial of Flux 4 and you can also purchase the full version from the Mac App Store if you decide you like it.

  • Does anyone know of an e-reader app for the iphone that has text to speech capability? I have a Kindle 3G that can read whole pdf documents and books but I cannot figure out how to do it on my iphone 4.

    Does anyone know of an e-reader app for the iphone that has text to speech capability? I have a Kindle 3G that can read whole pdf documents and books but I cannot figure out how to do it on my iphone 4.
    All of the apps I have found on the App store either do not have the text to speech capability or if they have it they will only read a page at a time or simply read the text you paste into their window. I really do not understand what is so difficult about having this feature as Kindle provides it--though Amazon does not make the feature available on its iPhone 4 app.
    Please help.

    thanks. yes i am aware of the VoiceOver feature but it is NOT the solution to my problem. as you said, it is a solution to a different set of issues. i want the text to speech ability because i there are books i need to read but do not have the time to sit down and read them and have become used to listening to them read to me either by a professional human reader or with the text to speech software on the Kindle.
    I think Apple makes the best audio devices but i am really disappointed in this inexplainable shortcoming. if apple can give us siri they ought to be able to design a nice little button that i can push to turn on text to speech while i am in a document, book, magazine or webpage. clearly it is possible as apple has added the "reader" button in safari to have web pages dropped into the reader format.
    thanks for your suggestion though, it is what everyone suggests but it does not address the issue.

  • I just started using fire fox and I cant figure out how to add a new folder to my bookmarks. Can anybody explain how in detail (I'm bad with computers so I need real detail) Please and thank you. :)

    I just started using fire fox and I can't figure out how to add a new folder to my bookmarks.
    Can anybody explain how in detail (I'm bad with computers so I need real detail)
    Please and thank you. :)

    If you use extensions (Tools > Add-ons > Extensions) like <i>Adblock Plus</i> or <i>NoScript</i> or <i>Flash Block</i> that can block content then make sure that such extensions aren't blocking content.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    You can use one of these to start Firefox in <u>Safe mode</u>:
    *On Windows, hold down the Shift key while starting Firefox with a double-click on the Firefox desktop shortcut
    *On Mac, hold down the Options key while starting Firefox
    *Help > Restart with Add-ons Disabled
    If it works in Firefox Safe-mode then disable all extensions (Tools > Add-ons > Extensions) and then try to find which is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • My iPhone 4S is not showing up in iTunes.  I've never had this issue before, but I'm finding it a little frustrating trying to figure out how to rectify the situation.  Any suggestions would be greatly appreciated.

    My iPhone 4S is not showing up in iTunes.  I've never had this issue before, and I'm finding it a little frustrating trying to figure out how to rectify the situation.  If anyone knows how to fix this problem, please advise.  Otherwise any suggestions would be greatly appreciated.

    Hi Josie,
    I understand that you are having issues with iTunes recognizing your iPhone 4S. Let's see if we can tackle this.
    The following resource will provide helpful steps in resolving this issue, pay specific attention to Steps 3-6 as these usually resolve this sort of issue.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Thanks,
    Matt M.

  • Trying to figure out how to change the tuning of certain notes so I can play notes in between pitches for example the middle note between B

    Trying to figure out how to change the tuning of certain notes so I can play notes in between pitches for example the middle note between B & C or E & F. I can use different tracks if needed but I would prefer to know how to do it for individual notes as well. They have to be exactly in the middle so it's not out of tune.

    Danny,
    The theme to Doctor Who is in 12/8. In music theory, there's no such thing as a 12th note, the notation and nomenclature is all based on things being divisible by four. So for the diddly-dum feel to happen, you have to give the beat to a quarter note plus another eighth note -- we call it a dotted quarter note, and now you have three eighth notes per beat so you can go diddly. So, since you can't call the time signature 12/dotted quarter, you call it 12/8 and go faster. Make sense? Anyway, for GB's purposes, all you need to know is that you'll get that feel by choosing 12/8.

Maybe you are looking for