Trying to delete everything without a stoke or fill
var doc = app.activeDocument;
for(var i=doc.pathItems.length-1; i>-1; i--){
if(pathItem.filled==false && pathItem.stroked==false) //I think this is where the error is
alert("Found "+pathItem);
doc.pathItems[i].remove()
So I am trying to find everything that does not have a stoke or fill and then delete it. I used this as a reference Finding pathItems that have no fill and no stroke Not sure what I did wrong I am new to javascript. Any help would be great I've been at this all day and it is very frustrating lol. I have CS6.
Hi djbgraphicdesign,
in your example pathItem is not defined. Please use doc.pathItems[counter] instead.
var doc = app.activeDocument;
for(i = doc.pathItems.length-1; i >= 0; i--){
if(doc.pathItems[i].filled == false && doc.pathItems[i].stroked == false)
alert("Found " + doc.pathItems[i] + " i");
doc.pathItems[i].remove();
This should do the job.
(You can also use a variable for doc.pathItems and use this variable instead.)
Have fun
Similar Messages
-
My SSD with a running Dreamweaver CS6 version crashed. Now a new SSD is installed and every time I try to reinstall DW CS6 the error " inconsistency in the installation programm database" (in german terms) occurs. I tried to delete everything concerning to CS6, rebootet and so on - nothing worked. Two hours later I tried to install DW 5.5 - that worked. Afterwards I tried again to install 6.0 - without success. Can anybody help?
Thank you for your answer. I could not find caps.db.
Meanwhile I solved the problem as follows: I searched for "dreamweaver" everywhere an deleted everything I could find. Then I searched for "CS6" and did the same. I guess there were around 20 or more places where I deleted directorys or files. Suddenly the installation did not stop at 2 % what it always did before and the installation was a success :-) It cost me more than 4 hours to figure that out and I did not find a really helping hint somewhere. Adobe itself I could not contact because I could not find an email adress or a phone number - poor support for such an expensive software. For luck I did not have to deliver something just in time. Lacking a useful support is a really poor, poor attitude of Adobe... I think I will not buy anymore Adobe products - it could cost too much of my time... :-( -
Hi, just need to know how to get my music, video, pictures and apps form my iPhone to my new laptop as the old computer, which I used before was stolen. I only have my phone left and if I try to conect it to my new laptop it's trying to delete everything.
I have also noticed all my settings won't stay set, example....I removed the check mark from "third party cookies", the when I close Firefox and reopen the check mark is back, also my tool bar has screwed up....can't reset, been having trouble the up grade.
-
Does anyone know what "other" means in the sync summary bar? I have 850mb using storage space in my iphone and can't understand what that is. I have tried to delete everything, restore to factory settings and change the icloud account. Thanks.
Hi there AnthPy,
You may find the troubleshooting steps in the article below helpful.
OS X Mail: Troubleshooting sending and receiving email messages
http://support.apple.com/kb/ts3276
-Griff W. -
1. How do I delete everything from the library?; 2. How do I delete everything without effecting the albums on facebook?
To delete everything from the iPhoto Library select all photos in the "Photos" view and press the "delete ⌫" key.
You cannot delete your photos without effecting the Facebook albums, if you are syncing your iPhoto library albums to Facebook. See Terence Devlin's post here:
Re: deleting from iphoto but not from facebook
The only way to delete photos from your iPhoto library without removing them from your Facebook albums would be to sign out of Facebook first by deleting the Facebook account from your iPhoto Preferences:
From the iPhoto Help:
Important: If you delete photos and albums from iPhoto, they’re deleted from your Facebook page, along with any posted comments. You can’t undo this action. To delete photos and albums from iPhoto without deleting them from Facebook, first remove the Facebook account from iPhoto. Choose iPhoto > Preferences, and then click Accounts. Click to select the Facebook account (below the Accounts subhead on the left), and then click the Delete button in the lower-left corner of the Accounts pane.
Regards
Léonie -
someone please help! ive tried everything i can find on google, is my phone just screwed?
http://support.apple.com/kb/ts3694
Error 1603
Follow the steps listed above for Error 1604. Also, discard the .ipsw file, open iTunes and attempt to download the update again. See the steps under Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations. If you do not want to remove the IPSW in the original user, try restoring in a new administrator user. If the issue remains, Eliminate third-party security software conflicts.
Error 1611
This error typically occur when security software interferes with the restore and update process. FollowTroubleshooting security software issues to resolve this issue. In rare cases, this error may be a hardware issue. If the errors persist on another computer, the device may need service. -
Trying to delete photos without loosing them completely...
I need to delete pictures off of my iphone to free up storage space. If my photostream pics are automatically downloaded to my iphoto and aperture on my macbook, can I delete them from my phone's camera roll without loosing them on my computer?
Have you confirmed that the photos have been imported into your libraries? In iPhoto if the Photo Stream preferences are set like this:
your Photo Streame photos have been imported and will be in an Event.
If that's the case you can delete the photos from the Camera Roll on the phone and they'll be save in the library.
OT -
How can i sync my iphone to a new computer without restoring settings and deleting everything?
I've just gotten a new desktop computer and I'd love to have my iPhone synced to it...but I cannot do that without "restoring" settings or erasing my current library to sync to this new library. The problem is I have absolutely nothing on this new computer and I do not wish to delete anything on my phone... what's the best way to go about this without losing any of my notes, photos, contacts, apps etc? I accidentally restored my iphone last year and it was horrible trying to get everything back on it, I just don't really want to do that again! I'm thinking I could possibly back up to iCloud and then erase my current library and start from there, but I'm very paranoid about losing my contacts and my photos! Also I just visited the iCloud website and I couldn't figure out how to access my photos on there. Any help that anyone could offer would be awesome! Thank you!
https://discussions.apple.com/docs/DOC-3141
-
Hi, can I move my iTunes library to an external drive without having to consolidate it as my prehistoric computer just doesn't have enough space even though I have deleted everything possible to make room? Please help
Hi, do you know if this works if I then want to move my library to a new computer as that is my main intention bacause my old computer hasn't got enough space for me to add new albums so I want to ditch the computer (its got to be about 100 years old and doesn't seem to cope well with modern technology!!) and start using my laptop for my iTunes. I am at the point now where i'm ready to throw both my computer and iPod out the window!!!! I might point out as well that in trying to clear space on my computer I accidently deleted the Bonjour programme which is aparently needed to use the home share option, oops!!!!
Thanks, Kerry -
I've tried everything. Cloud Cleaner, removed all Adobe products from computer, ran in Administrator Deleted everything still get error code 1 noting in all the troubleshoots have helped.
Error Code 1: "Failed to install" | Creative Cloud Desktop :
https://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html -
I'm trying to update my phone to the ios7 and my phone keeps telling me I don't have enough available storage... The thing is I have deleted everything from my phone and I have nothing else to get rid of... So I need to know what to do
Check for 'others' in iTunes against your iPhone.
Restore from a previous backup to reclaim some of it.
Still want more, Restore in iTunes, setup as New. -
I'm trying to delete a video to free up space on my mac. I've moved it to trash and when I try to empty the trash it keeps coming up with...."The operation cannot be completed because the item " ......... .m4v is in use". I'm not exactly computer literate - I don't even know what the m4v is, but I've read some discussions saying to shut down the computer - which I did - nothing everything else I've found on the m4v is too technical for me to grasp. Can anyone help me?
Sorry, didn't notice that you cd'd into that directory. Can't explain why you can't delete it, but I don't do server or NAS stuff. You might want to repost to the Unix forum.
-
I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?
Hi Crushed,
Numbers doesn't have pages. It has a canvas that holds objects such as tables and charts.
Drag the objects from the bottom of the canvas onto the white space above. That will reduce the number of "pages" (sheets of paper) that will print.
Regards,
Ian. -
I have 2 itunes accounts. I can no longer use my first one for purchases so I had to start a new one and it will not sync from my new one without deleting everything on my same ipod from my previous account. How do I sync between both accounts?
Wayland wrote:
The CS.com service account has long been closed. I cannot get it to respond to my years ago password for that account. So I ask them to send me a new password and of course it goes to my years ago email number.
Don't have it send email.
Answer the security questions. -
I am trying to delete a large number of songs from my itunes library without having to do it one at a time. How can I do this. All of my songs have check marks by them. Help!
Then I suspect you do not have iTunes Match enabled. Using that "delete all" command in the Settings does not remove the music from the cloud, nor does it disable iTunes Match. With iTunes Match enabled you will still see all the music.
So go to Settings > iTunes and App Store and make sure iTunes Match is set to ON (green).
Maybe you are looking for
-
How to get the output in the required format
Hi, I have a table Months it has 2 columns month_id (number) and month_name(varchar2). I wish to get the o/p from a select query such that , when user chooses a specific month_id it should appear first and rest all months should come below it in asce
-
Can´t import bought Itunes songs to my libary
Hi, after moving my songs to an external drive an update the libary, itunes do not import some songs I buyed in the Itunes store. Got no idea. The account is activated. Regards, Art
-
PS6b1: "The GPU Sniffer Crashed" Win7 X64
PS CS6B1 reports "Photoshop detected an error in your display drive" and disables GPU settings when running on Win7 x64 system with Asus EAH 6970 (AMD Radeon 6970) graphics card. I verfied that the latest Asus/AMD drivers are installed and working p
-
Problem to assign BP in organization model
Hi sap I have configured the service desk in solution manager. I create my organization model from transaction ppoma_crm. Now I think that I must assign business partner to organization units (first level support, second level support ..) but I can't
-
Is the trial version of Illustrator full-featured?
Does the trial support file import/export and cutting & printing, or is it limited in any way other than the 30-days? Thanks, Jim