Posts Tagged ‘files’

FF 3.6 breaks webpage preview of files ending with .php extension

Posted in Firefox on March 19th, 2010 by Saba – 5 Comments

Regarding Firefox 3.6 (Mac OS X)

Currently using FF 3.5.8 (Mac OS 10.5.8). I use Text Wrangler to code web pages in html with php includes. I save as UTF-8 (no BOM) with .php extension. I am able open and preview these files on local host as webpages using Firefox 3.5.8 and earlier – but not 3.6.

Maybe this has to do with Safari reading only extensions and not MIME types?

Error console reports: “Error: dialog is null” Source file: file:///Applications/Firefox.app/Contents/MacOS/components/nsHelperAppDlg.js

Others have reported that FF3.6 breaks preview in Dreamweaver pages, but over at the Firefox Support Forum someone replied that a fix was coming at the end of March. Will this fix address the issue I am having as well?

Please note, I do not expect to and do not care to preview the pages with php includes; I only want to preview them in browser mode so as to correct or tweak the html and css, before uploading to server.

Automator and AppleScript to filter files > 10 Mb

Posted in Apple on March 16th, 2010 by Saba – Be the first to comment

On Mar 15, 2010, at 4:14 PM, Thierry Willemsens wrote:

Automator and AppleScript to filter files > 10 Mb

Posted in Apple on March 16th, 2010 by Saba – Be the first to comment

Automator and AppleScript to filter files > 10 Mb

Posted in Apple on March 16th, 2010 by Saba – Be the first to comment

Hey all, I am trying to create a apple script that when run, will randomly choose a handful of specifically chosen Screen savers…. I have googled and I am coming up short. Any ideas?

thanks

David

Automator and AppleScript to filter files > 10 Mb

Posted in Apple on March 16th, 2010 by Saba – Be the first to comment

Hello everybody,

first post for me on this users list, really impress to see the level here…

My little problem I would like to to make a folder action to get an alert window when the file is bigger or equal to 10 Mb.

I’ve started with Automator with : Get Specified Finder Items. After that because I use the french Automator’s version : Run an AppleScript

Here is my little script, but how can I specify the size of 10 Mb ?

on adding folder items to this_folder after receiving added_items

if added_items is greater or equal to

tell application “Finder” activate display dialog “Ce fichier fait plus de 10 Mb” with icon stop end tell

end adding folder items to

Do I need to add another action to close the script after that ?

Thanks for your help.

Thierry

I am Getting 2 Preferences Files

Posted in Apple on March 15th, 2010 by Saba – Be the first to comment

I have just noticed that after recently upgrading to Snow Leopard the application I am working on is generating a second preference file. This prefs file is called com.xxx.myApp.LSSharedFileList.pList and gets generated when I open a new file. It is apparently used to populate the Open Recent menu. I have noticed that Preview, TextEdit and probably a few other apps from Apple also generate this file so is the new normal?

thanks!

Peter Zegelin www.fracturedsoftware.com Rondo – MIDI for your Mac MacSimAVR – AVR simulator for OSX_______________________________________________

Listening to mp3 files

Posted in Firefox on March 12th, 2010 by Saba – 12 Comments

I have files with mp3 extensions associated with Winamp player. When using Windows Explorer, if I double-click on an mp3 file, Winamp opens and the file plays or enters the queue.

But if I click on a link in FF to an mp3 file, the file plays okay, but with Quicktime. If I go to Tools/Options/Applications, the Content Type column doesn’t show the mp3 extension, and I don’t see a way of adding anything to the Content Type and Action columns.

How can I make FF use Winamp as the player for mp3 files?

Thanks,

Ray

Can I delete files when an XPI is installed?

Posted in Firefox on March 9th, 2010 by Saba – 2 Comments

I have written a Firefox toolbar that is installed using an NSIS installer. The toolbar includes a DLL that implements a custom protocol, and also an XPCOM object that can be accessed from JavaScript.

The NSIS installer used to manually copy the extension DLL into C:Program FilesMozilla Firefoxcomponents which is how Firefox used to recommend this kind of thing be done.

But now with FF 3.6 I’ve updated my installer so the NSIS installer contains an XPI that it passes to Firefox to be loaded, and my DLL is inside the XPI in the Components folder, and so now the DLL is (properly) installed into C:Documents and Settings{user name}Application DataMozillaFirefox Profiles{random}.defaultextensions{guid}components which is good.

Until a user who installed my add-on using the old installer, tries to upgrade it from inside Firefox. The new XPI file puts the new DLL in the new location, which means the old DLL is still sitting in the old location screwing things up.

How can I have my XPI file delete or otherwise incapacitate the DLL that the old installer put in the old folder?

I have seen a recommendation of using an nsILocalFile object, which I don’t know too much about, but I have seen this URL: https://developer.mozilla.org/en/Code_snippets/On_page_load#Running_code_on_an_extension%27s_first_run_or_after_an_extension%27s_update which I can certainly follow its recommendations, but I’m thinking that by the time the “load” event is triggered, my old DLL has already been initialized and is in use, so I won’t be able to delete it.

Is there a way to have some code run _during_ the installation, prior to when Firefox starts up again, so that my XPI can clean up after the old installer?

Thanks, Chris

Resize JPG files and keep the clipping path

Posted in Apple on March 9th, 2010 by Saba – Be the first to comment

Hello,

I use Image Events in an applescript to resize jpg files. Unfortunately I loose the original Photoshop clipping path in the new resized file. Is there a smart way to resize jpg files (other than with Photoshop) and preserve the clipping path?

Bert.

Interface Builder : moving a controller to File’s Owner

Posted in Apple on March 5th, 2010 by Saba – 5 Comments

Hello,

I am refactoring one big NIB file into smaller pieces. I copy/paste a WindowController object and a Window object in a new “empty” NIB.

I end up having

File’s Owner First Responder Application WindowController Window

I would like to move WindowController as File’s Owner and keep all the connections. How could I do this in InterfaceBuilder ?

Thanks in advance.

David