Posts:
11,873
From:
Pasadena via Butte
Registered:
Sep 19, 2001
|
|
|
|
Re: Bug in Preview in Snow Leopard when opening multiple pdf files at once
Posted:
Sep 2, 2009 5:26 PM
in response to: Barney-15E
|
|
|
Is this Charles Rangel???
MBP Mac Pro Touch 3G iPhone
Mac OS X (10.6)
AAA™
|
|
Posts:
5,310
Registered:
May 22, 2001
|
|
|
Posts:
2
Registered:
Jun 27, 2009
|
|
|
|
Re: Bug in Preview in Snow Leopard when opening multiple pdf files at once
Posted:
Sep 2, 2009 9:54 PM
in response to: Barney-15E
|
|
|
Hi Guys
I have a problem that might be related. I get my pay slip as a PDF attachment. I have one PDF file for every year with all the individual pay slips. When I get a new one I just add it to the yearly pack via the preview and sidebar. Now after updating to 10.6 the tab stops and margins in the newly attached gets all messed up so the document is unreadable, but only that page. Also if I try to open a bunch of JPG's in preview and save them as a PDF doc. It's kind of random what happens, if it actually saves it, or discards it or what. I have about 289 GB free HD and are running on a 2.4 GHz Macbook with 2GB memory.
MacBook
Mac OS X (10.6)
IPhone 3Gs
|
|
Posts:
2
From:
Aldershot, UK
Registered:
Sep 2, 2009
|
|
|
Posts:
86
From:
Canada
Registered:
Sep 25, 2006
|
|
|
|
Re: Bug in Preview in Snow Leopard when opening multiple pdf files at once
Posted:
Sep 3, 2009 2:02 PM
in response to: Barry W.
|
|
|
I figured out a way to remove the the quarantine attribute from our files. This will solve our issue with opening files. I'm trying to simplify the process so those who don't know much about using Terminal will be able to do it easily.
Basically, you select the folder you want to fix, run a simple command, and it will fix them. The bigger the folder, the longer it will take, have patience. Also it will go into subfolders. I suggest not doing it in the root of your home folder unless you'd like to leave it running overnight. If you do however, try and delete your safari/mail caches, as it will be stuck going through those for likely an hour or 2.
This is using the method A A P L showed us, just streamlined so you don't have to do it one file at a time. I'll try and post it tonight. I got it working on one mac, just want to test it on another before I give it out.
24" iMac Core 2 Duo
Mac OS X (10.6)
4GB RAM
|
|
Posts:
11,873
From:
Pasadena via Butte
Registered:
Sep 19, 2001
|
|
|
|
Re: Bug in Preview in Snow Leopard when opening multiple pdf files at once
Posted:
Sep 3, 2009 3:01 PM
in response to: paulmuk
|
|
|
I get this in Console opening the 2nd one.
9/3/09 3:00:27 PM Preview1662 *** -NSCFArray insertObject:atIndex:: attempt to insert nil
No freezes though.
MBP Mac Pro Touch 3G iPhone
Mac OS X (10.6)
AAA™
|
|
Posts:
3
From:
Denver
Registered:
Nov 30, 2008
|
|
|
|
Re: Bug in Preview in Snow Leopard when opening multiple pdf files at once
Posted:
Sep 3, 2009 4:12 PM
in response to: Barney-15E
|
|
|
I have the same issue, when opening .jpg files. When I select 10 in Finder, then pick "Open" from the context menu, maybe 6 open in Preview. I close Preview and try it again, the same 6 and 1 more open; close Preview and try again, those and 1 more open; etc.
MacBook Pro
Mac OS X (10.6)
|
|
Posts:
86
From:
Canada
Registered:
Sep 25, 2006
|
|
|
|
Re: Bug in Preview in Snow Leopard when opening multiple pdf files at once
Posted:
Sep 3, 2009 4:53 PM
in response to: Barry W.
|
|
|
<edited by host>
Alright, so its been simplified. First off, the reason they don't all open is they haven't been given permission to yet. Whoever said it was related to downloaded files is right. Everything from Safari/Mail at one point gets marked. Happened in Leopard too. In Snow Leopard security is tighter so this is now creating a problem for some of us. It's likely to get fixed in a future patch but for those who don't want to wait for Apple, this is what we can do.
To remove the quarantine attribute from your files (any filetype) download this file. Quarantine Shell
Extract the shell and place it on your desktop.
Start Terminal, and navigation to the folder of files (and sub-folders) you want to fix.
i.e. cd ~/Pictures
Now, copy this command and hit return.
find . -exec ~/Desktop/quarantine.sh '{}' \;
It will appear to freeze next, no progress bar sorry. You can rest assure it will work fine even if it takes hours. You can continue to work away as it uses minimal resources. If you feel paranoid enough to monitor. Launch Activity Viewer and look for the 'find' process. However keep in mind this will take quite awhile depending on folder sizes. For example, it took me about 20 minutes to fix my pictures folder, with roughly 25,000 images.
When it's done it will just show you an blank prompt. Then you can test opening them but it'll work 
Try with a smaller folder if you'd like. Note, this won't damage any of your data.
24" iMac Core 2 Duo
Mac OS X (10.6)
4GB RAM
|
|
Posts:
5,310
Registered:
May 22, 2001
|
|
|
|
Re: Bug in Preview in Snow Leopard when opening multiple pdf files at once
Posted:
Sep 3, 2009 6:38 PM
in response to: Steve Grenier
|
|
|
What would be a little more elegant would be to create a folder action that would unquarantine each item added to the folder. You could attach the folder action to the downloads folder, but I don't think you'd want to apply it to everything you download. But, you could drag them all to another folder.
Additionally, you could have Preview open them after they are fixed.
Another option might be a Service workflow that would run the command on each item from the contextual menu.
1.8 SP G5/iMac G4 FP/MBP 2.33/PB G3 Pismo
Mac OS X (10.6)
XLR8 G4 Upgrade for Pismo
|
|
Posts:
5,310
Registered:
May 22, 2001
|
|
|
|
Re: Bug in Preview in Snow Leopard when opening multiple pdf files at once
Posted:
Sep 3, 2009 7:01 PM
in response to: Barney-15E
|
|
|
Ok, here's how I made the Service (contextual menu item).
New Automator Service
On Files and Folders in Finder
Run Shell Scriptxattr -d com.apple.quarantine "$@"
echo
The echo seems to stop the error messages from popping up when there is no quarantine. It just ignores the errors. Better way?
Now, if someone can tell me how to pass the files back out of the shell script so that we can open them.
Oh, and thanks for the shell script that got this going.
Ok, I guess I could just use the whole script, but I started assuming that I'd just ignore the errors returned by xattr.
Message was edited by: Barney-15E
1.8 SP G5/iMac G4 FP/MBP 2.33/PB G3 Pismo
Mac OS X (10.6)
XLR8 G4 Upgrade for Pismo
|
|
Posts:
86
From:
Canada
Registered:
Sep 25, 2006
|
|
|
|
Re: Bug in Preview in Snow Leopard when opening multiple pdf files at once
Posted:
Sep 3, 2009 7:03 PM
in response to: Barney-15E
|
|
|
Do you have the problem with new files? I haven't noticed any issues with newly downloaded material.
24" iMac Core 2 Duo
Mac OS X (10.6)
4GB RAM
|
|
Posts:
5,310
Registered:
May 22, 2001
|
|
|
|
Re: Bug in Preview in Snow Leopard when opening multiple pdf files at once
Posted:
Sep 3, 2009 7:05 PM
in response to: Steve Grenier
|
|
|
Yes I do. MacBookPro2,2.
And I've filed a bug report on it.
1.8 SP G5/iMac G4 FP/MBP 2.33/PB G3 Pismo
Mac OS X (10.6)
XLR8 G4 Upgrade for Pismo
|
|
Posts:
5,310
Registered:
May 22, 2001
|
|
|
|
Re: Bug in Preview in Snow Leopard when opening multiple pdf files at once
Posted:
Sep 3, 2009 7:17 PM
in response to: Barney-15E
|
|
|
Ok, I worked around the opening part. I also tried using the full script, but still got an error from Automator. So, I went back to what I posted.
Put a Set Variable action before the shell script. Call it anything you'd like.
After the shell script, add a Get Variable and set it to ignore input.
Add Open Finder Items action after Get Variable.
Voilà. Clear the quarantine and open the files using the contextual menu.
1.8 SP G5/iMac G4 FP/MBP 2.33/PB G3 Pismo
Mac OS X (10.6)
XLR8 G4 Upgrade for Pismo
|
|
Posts:
33
From:
va
Registered:
Jul 1, 2008
|
|
|
|
Re: Bug in Preview in Snow Leopard when opening multiple pdf files at once
Posted:
Sep 3, 2009 7:26 PM
in response to: Barry W.
|
|
|
I did an upgrade from 10.5.7 on a MBP. I have had multiple crashes when using Preview , using "new from clipbd..then save as..crashes during save. Crashes during Firefox usage...anytine. I have 74gigs freespace. Finally the buggyiest of all. TVUPlayer. Usually crashes whenusing cord to TV..dvi---hdmi.Watching shows at max zoom. As soon as the window gets near the edge of screen..she's gone. These three programs so far
Preview
Firefox
TVUPlayeMaybe 20 crashes in one day. Also what happened to CUPS? They changed it or something. I had to reinstall the identical drivers,Go figure. I have a Canon Pixma470. Apple made a new driver for it, with the snow lep..but it doesnt work. You get a pretty new icon, but MP150 Gutenberg is onkly thing that works(5.23)5.24 is out..but I doent see any reason to upgrade. This is working.
Macbook Pro
Mac OS X (10.6)
iphone 3g, connect to TV dvi-hdmi
|
|
|