Where Does Firefox Store Cookies on OS X? - macos

I want to load my Firefox cookies into a MozillaCookieJar object for a Python script that I'm writing. What I can't figure out though is where Firefox actually saves its cookies file.
I'm running macOS Sierra (10.12.3) and Firefox 53.

Firefox saves your cookies in a file called "cookies.sqlite", a SQLlite database in your Firefox profile folder.
From "Finding your profile without opening Firefox":
(OS X 10.7 or above) Click the Finder icon in the dock. On the menu bar, click the Go menu, hold down the option or alt key and select Library. A window will open containing your Library folder.
Open the "Application Support" folder, then open the "Firefox" folder, and then the "Profiles" folder.
Your profile folder is within this folder. If you only have one profile, its folder would have "default" in the name.
For instance:
/Users/USERNAME/Library/Application\ Support/Firefox/Profiles/########.default/cookies.sqlite

Related

How do I load extension on firefox and safari browser?

I have developed extension for chrome and later I made browser specific using gulp.
So I know left with folders.
/Chrome
/Firefox
|-/data/
|-/locale/
|-index.js
|-package.json
/Safari
So for the chrome it was simple drag and drop.
So problem I faced is when I try to load on firefox browser at about:degugger it would reject my extension saying it is corrupt.
For Safari I searched on their website and I found documentation for only using Xcode editor.
Install unpacked extension on Safari
Open Safari
Go to menu Develop->Show Extension Builder (If there is no Develop menu, open Safari Preferences->Advanced, and check Show Develop menu in menu bar)
In Extension Builder window, click + at the left-bottom of the window, then click Add Extension
Select your extension folder (Your extension folder should be named as YourExtName.safariextension)
Now your extension will show at left panel of Extension Builder, you can click Install button to install it
Install unpacked extension on Firefox
Latest version of Firefox support load temporary extensions (Not sure from which version).
Steps:
Navigate to about:debugging
Click Load Temporary Add-on button
Select manifest file of you extension
Safari
Open the Gallery by choosing Safari Extensions from the Safari menu.
Click “Install now" next to the extension that you want to install.
You can also get extensions directly from your favorite developers. When you download an extension from a developer, you get a file that ends with .safariextz. Double-click the file to install the extension. It isn't signed or hosted by Apple, so Safari asks you to confirm that you trust the source and want to install the extension.
Firefox
You need to enable the debug mode check more information here

Load fonts directly to Xcode from finder folder (mac OS)

I'am creating a Mac OS application in which user will choose a font to display a text. All fonts will be in an application folder in finder. I need a code (swift or objective-c) to load it directly (without installing) to Xcode so user feel free to add any font to the folder to use.

xcode install cocoa project at launchpad

When I run my Mac OS X Cocoa project, Xcode says build succeeded and the application opens, but never appears as installed. When I go to launchpad I can't find the application. Seems it is only emulated. I need to watch how is shown in the launchpad with the icon and the title. How can I install the application from the xcode?
I have xcode 6.1.
Need help please.
Thanks in advance.
Only Apps inside of /Applications and ~/Applications are displayed in Launchpad. When you launch from Xcode the apps are copied to a temporary build directory. So you have to copy your app to the correct location.
If you only want the Debug version, because you want to test your app, you can simply locate the app bundle in Finder:
Open the Products group in Xcode, right click the .app file and select "Show in Finder". In Finder simply drag & drop the app into the Applications folder.
If you need the Release version you can archive the app. Select Product/Archive in the Xcode menu.
In the Organizer you choose Export, in the Export wizard you select "Export as Mac Application". You can directly save it into the Applications directory, or save it somewhere else and copy or move it into the Applications directory

Click Once Deployment for Mac

As the title states, is there an equivalent to Click Once application deployment for the Mac?
I ask this because the version of Safari that ships with Lion has removed DMG (disk image) files as a "safe file type" that is opened after downloading. The company I work for has a rather special-purpose application that should launch as soon as it is downloaded.

Browse the files created on a device by the iOS application I'm developing, on workstation?

I'm developing an IOS app that creates files on the device, e.g. with NSKeyedArchiver.
During Android development it's possible to browse a device filesystem when it's connected to your workstation via USB, for instance to help with troubleshooting your app.
However for IOS I don't see anything similar under the Organizer in Xcode, to help me browse files my app creates from the workstation. Googling "iOO browse device files", "iPhone view files" etc. reveals solutions for jailbroken devices but not for regular devices provisioned for development.
How can I browse files on a device created by an iOS app I'm developing?
In Xcode's Organiser, go to your device's Summary tab. Find your application in the list, and click the disclosure triangle. Under it, you should see an icon saying "Application Data". Click the down pointing arrow to download the data, and it'll prompt you for somewhere to save it.
In Xcode 5, listed under your device in Organizer, click on "Applications" and you can see "Data files in Sandbox" in the bottom half of the window.
In Xcode 6, go to Window -> Devices, select the device, select the app name under Installed Apps, click the settings gearbox, then select Download container.... In finder, double finger tap the package and select Show package contents.
In Xcode 6, open the Devices window:
Then, select the app (in Installed Apps) and then click the gear icon and select Download Container.
Pls note, that you can view contents of downloaded .xcappdata container by right click on it and select "Show Package Contents"
iExplorer works like a charm! Just used it to export some app files! http://www.macroplant.com/iexplorer/download-ie3-mac.php
In Xcode9: / Window / Devices and Simulators
Select the desired installed app, click the gear at the bottom and Download container...
In Finder, "right-click" the downloaded file and Show Package Contents to open it in a new Finder window.
I hope it's useful. Peace.
XCode version : 10.2.1
goto window -> Devices and Simulators
and after that choose your device from the left list, choose the app from the installed app, so you can press show container for show app's contains on the new page on xcode, press download container to download it to your OSX, also you can replace an old container to the moment state with Replace container...

Resources