Tag Archives: quicksilver

QSFoundation/QSFoundation.h file not found – Building Quicksilver Plugins

Ok, so you’ve read the getting started guide on how to write quicksilver plugins, and read the QSApp Blog Post about how to get started with QS plugins, and checked out the Quicksilver Plugin Development Reference and checked out the repo of current plugins and visited the Quicksilver Developer Wiki and already referenced the Quicksilver Plugin Reference and read PJRobertson’s Quicksilver Plugin Reference page and now you have got your new Xcode project all setup and when you click “build” you get something like: QSFoundation/QSFoundation.h file not found – Building Quicksilver Plugins Here’s what to check Make sure that in Xcode5 you have set up the SourceTrees in the preference pane – it’s under Locations -> Source Trees: Secondly, you should have also already used git to clone the Quicksilver repo and built Quicksilver successfully. For help on this topic see Building Quicksilver. Finally, you must have built Quicksilver for development in order for the header files to be in the right places. Here’s how to build for development: To check and make sure the headers are in the correct place, check this folder: /tmp/QS/build/Debug/QSFoundation.framework/Headers/ It should exist and not be empty. For more help visit Quicksilver’s Google Group or open a support request on the Github page.

Posted in Web Development | Tagged | Leave a comment

Quicksilver Crash Reports Location

When Quicksilver crashes it gives some message like: In order to help improve Quicksilver, please consider sending a crash report to the developers. Quicksilver will restart when this window closes. To troubleshoot your problem, see the FAQ or alternatively report your issue on the issue tracker. But when Quicksilver crashes it actually also provides a log of the crash. Per the source code file, QSPaths.h, you can see the path to the crash logs is set to: ~/Library/Logs/DiagnosticReports Below is the other default Quicksilver paths for error reporting, etc.: #define pTriggerSettings QSApplicationSupportSubPath(@”Triggers.plist”, NO) #define pCatalogSettings QSApplicationSupportSubPath(@”Catalog.plist”, NO) #define pCatalogPresetsDebugLocation QSApplicationSupportSubPath(@”Presets.plist”, NO) #define pMnemonicStorage QSApplicationSupportSubPath(@”Mnemonics.plist”, NO) #define pCacheLocation QSApplicationSupportSubPath(@”Caches/”, NO) #define pIndexLocation [@”~/Library/Caches/Quicksilver/Indexes/” stringByStandardizingPath] #define pStateLocation [@”~/Library/Caches/Quicksilver/QuicksilverState.plist” stringByStandardizingPath] #define pCrashReporterFolder [@”~/Library/Logs/DiagnosticReports” stringByStandardizingPath] #define pShelfLocation QSApplicationSupportSubPath(@”Shelves/”, NO) #define psMainPlugInsLocation QSApplicationSupportSubPath(@”PlugIns/”, NO) #define psMainPlugInsToInstallLocation QSApplicationSupportSubPath(@”PlugIns/Incoming/”, NO) #define kCheckUpdateURL @”http://qs0.qsapp.com/plugins/check.php” #define kDownloadUpdateURL @”http://qs0.qsapp.com/plugins/download.php” #define kPluginInfoURL @”http://qs0.qsapp.com/plugins/info.php” #define kPluginDownloadURL @”http://qs0.qsapp.com/plugins/download.php” #define kForumsURL @”http://groups.google.com/group/blacktree-quicksilver” #define kBugsURL @”https://github.com/quicksilver/Quicksilver/issues” #define kWebSiteURL @”http://qsapp.com/” #define kHelpURL @”http://qsapp.com/wiki/” #define kHelpSearchURL @”http://qsapp.com/w/index.php?title = Special:Search&search=%@&go=Go” // URL to crash reporter server/script #define kCrashReporterURL @”http://qs0.qsapp.com/crashreports/reporter.php” // Wiki page detailing why we collect crash reports #define kCrashReportsWikiURL @”http://qsapp.com/wiki/Crash_Reports”

Posted in Mac, Software, Tech Tips | Tagged , , | Leave a comment

Send Folders to CodeKit via the Command Line

If you’re doing some web development with CodeKit and want to be able to send folders to the program via the command line (I was really hoping to do this via Quicksilver), then you can use this little tidbit: open -a /Applications/CodeKit.app “/path/to/your/project” The CodeKit application apparently does not associate itself with being able to open files and so it doesn’t register with folders or files as being an available “Open With” application for opening them. Again I was hoping to do this via a quicksilver action, something like: If it did then quicksilver would stick it in the third pane when using the “Open With” action, wouldn’t that be nice! It is possible to get it into the third pane but you need to have the path to the application in your clipboard (/Applications/CodeKit.app) and then: Select the Folder Choose “Open With” Tab to the third pane and paste the path to the application in. That’s demonstrated in the screenshot above. CodeKit’s not too bad, some aspects seem sluggish and I wish there were more features to customize it – like inclusion and exclusion rules and a finer grained control of which tabs refresh in the browser – also maybe some explanation of their partial CSS injection-on-update feature they have in the preferences.

Posted in Mac, Tech Tips, Web Development | Tagged , , , , | Leave a comment

Quicksilver Plugin Tutorial – Basic Tutorial (Draft)

This page is an archived version of http://quicksilver.infogami.com/ObjectiveCPlugInsBasicTutorial Quicksilver Basic Tutorial (Draft)   Introduction A brief tutorial showing the creation, installation, and running of a Quicksilver plug-in (Objective-C) implementing a simple action. Set-up Ensure a development version of Quicksilver is installed (I put mine under ~/Applications/). Ensure Developer Tools is installed (I’ve got whichever one gives me Xcode 2.4). Follow the plug-in template installation instructions (Note that there is an important step involving telling Xcode where certain Quicksilver frameworks live – hint: they live inside the development version of Quicksilver which should now be installed.). Implementation Launch Xcode if it’s not already launched. From the Assistant (or File -> New Project), choose to create a ‘Quicksilver Plug-in’ (You’ll likely choose a location for your project and a name — I’m going to use ‘MyPlugIn’ as a name for this tutorial). Edit Info.plist to make the content as follows (A plug-in’s Info.plist allows a plug-in to communicate details about itself to Quicksilver (e.g. whether the plug-in provides an action)): < ?xml version=”1.0″ encoding=”UTF-8″?> < !DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> <plist version=”1.0″> <dict> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleExecutable</key> <string>MyPlugIn</string> <key>CFBundleIdentifier</key> <string>com.blacktree.Quicksilver.MyPlugIn</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>MyPlugIn</string> <key>CFBundlePackageType</key> <string>BNDL</string> <key>CFBundleVersion</key> <string>1A</string> <key>QSActions</key> </dict><dict> <key>MyPlugInAction</key> </dict><dict> <key>actionClass</key> <string>MyPlugInActionProvider</string> <key>actionSelector</key> <string>performMyAction:</string> <key>directTypes</key> <array> <string>NSStringPboardType</string> </array> <key>name</key> <string>My Action</string> </dict> <key>QSPlugIn</key> <dict> <key>author</key> <string>An Author</string> </dict> <key>QSRegistration</key> <dict> <key>QSActionProviders</key> </dict><dict> <key>MyPlugInActionProvider</key> <string>MyPlugInActionProvider</string> </dict> </plist> Edit MyPlugIn.h to make the content: // // MyPlugIn.h // MyPlugIn // #import <qscore /QSObject.h> @interface MyPlugInActionProvider : NSObject { } @end … Continue reading

Posted in Software | Tagged , | Leave a comment

Quicksilver: Disable Shelf Popup

As of a recent release of Quicksilver (around B68 3927) the shelf module has been revised (version 1.2.3 5/9/12) and it will now pop up on the left side of the screen if you hover your mouse cursor near the center of the screen: I love quicksilver but personally find this a little annoying. As far as I can tell there is no visible option to customize where the settings are for the shelf’s behavior, but if you don’t use it you can disable the shelf in Quicksilver’s plugins module: If there is a way to disable the shelf from appearing on the left side you may be able to access it directly with something like the defaults write command. This command turns previews on: defaults write com.blacktree.quicksilver “QSLoadImagePreviews” YES

Posted in Mac, Software, Tech Tips | Tagged , , , | 2 Comments

How I think Quicksilver Should Utilize “Recent Items”

So I have a trigger for Quicksilver that is Cmd+shift+Space which brings up a list of my most recent objects and items. This is pretty cool and helpful – set it up in the catalog if you don’t have it already. That’s great because most of the time you will use the same files and folders several times when working on something. But often times I want to compile, collect, and aggregate stuff – and I think this is where Quicksilver has a downside that could really be improved. This is what Quicksilver shows when I look in my downloads folder: What I would like to see is a way to select an item as normal in the first pane, choose the action in the second pane, and when a file is required, have the ability to see / choose the recent items as well as searching in the third pane. It might look something like this: Is that so hard?

Posted in Mac, Tech Opinion, Tech Tips | Tagged , , | 5 Comments

Quicksilver Screen Capture Location

If you’re trying to change the Quicksilver Screen Capture Location, it can be tricky. By default these are stored on the Desktop. You can change the system defaults (using the tips below), which is what happens when you take a screenshot using cmd+shift+3 / cmd+shift+4. But Quicksilver does not acknowledge these changes / read the preferences. You could just use the standard OS X key bindings for these. cmd+shift+3 for Capture Screen, cmd+shift+4 for Capture Region and cmd+shift+4 followed by space for Capture Window. The one advantage to the Quicksilver commands is that after they run, a new command window appears with the newly generated image selected as the object, ready for you to rename it or move it or do whatever you want. Changing the Screen Capture File Type (jpg/png/pdf/gif) See¬†http://www.jhuskisson.com/articles/changing-the-default-mac-screen-shot-image-type How To Change The Default Screenshot Location on a Mac When you do the basic Screenshot Command on a Mac the default location for the Screenshot to be saved is your desktop then you have to find them and put them into a Folder. Well not anymore, by using a simple Terminal Command all your Screenshots can be placed into a Folder of your choice. First make a Folder on your Desktop or where ever you want to keep your Screenshot Folder, naming the Folder whatever you would like. Open your Terminal Window. Your Terminal can be found in Applications/Utilities on your Mac or found by going to the top right hand corner of your Screen and doing … Continue reading

Posted in Mac, Software | Tagged | Leave a comment

bash: send last command to quicksilver

In your /Users/user/.profile add the following: export HISTCONTROL=erasedups:ignorespace alias cpc=” history | cut -c 8- | tail -n 2 | head -n 1 | qs” The first line prevents duplicate commands in the bash history, and also keeps any commands starting with a space from showing up in history. The second line sets an alias of “cpc” which will get the second to last command (cpc being the “last” command), and sends it to quicksilver. Now, launch a new terminal window and type a command, like “ll -l”, and then type “cpc” and quicksilver should pop up with “ll -l” in the first pane. I find this most useful when I’ve just executed a long or complicated command and want to easily grab it, either to save it or modify it.

Posted in Mac | Tagged , , , , | 1 Comment

quicksilver clear recent items

Quicksilver has a “recent items” cache / item proxy. The only problem is if you have deleted items that are showing up there. They never seem to go away! To fix this you’ll have to manually go in and clear the Quicksilver Recent Items list. To do this I exited Quicksilver, and renamed a file in this folder by adding “.old” to the end of it. ~/Library/Application Support/Quicksilver My file was a hidden file, called .dat01c7.022, but your file will probably be named differently. After restarting quicksilver the Recent Items had been cleared and things were wonderful again.

Posted in Mac, Tech Tips | Tagged , | 1 Comment

Access Hidden Files with Quicksilver

Access Hidden Files with Quicksilver You may be wondering if Quicksilver Indexes Hidden Files – or if you can access them with Quick Silver. The short version is that if you use the alt / option key and the / key or hold alt / option and right arrow into a folder with quicksilver, it will show you the hidden files inside of it. This also works for special folders, like Applications (.app) Access QuickSilver. Start entering Mac and one of the top options is Macintosh HD Select Macintosh HD but before opening it up with the action ‘Open’, enter “Alt – /” . This will give you access to all the hidden files in that Folder. now you can use QuickSilver to access the host file, Macintosh HD/Private/etc/hosts By entering “?” you can move up a level if you get to the hosts file but want to access ‘etc’ folder to change the ‘read/write’ security settings of the host file. These are different ways to do the same, I suggest using QuickSilver to access the hidden file, ‘private/etc/hosts’ to access the host file and making the modifications you need manually. So, yes, Quicksilver Indexes Hidden Files, sort of. Thanks to Juan

Posted in Software, Tech Tips | Tagged , , | Leave a comment