I'm getting my feet wet with AppleScript. It seems pretty neat, but totally different than the kind of scripting I'm used to working with. My problem lies here:
I want to open up System Preferences and then Print&Scan.
I can do it for many other preference panes, but not Print&Scan. For example,
tell application "System Preferences"
activate
set current pane to pane id "com.apple.preference.sound"
end tell
will get me to the preference pane for sound. How would I open Print&Scan?
Also, is there a place that lists all the panes you can use? I looked in the Applescript dictionary, but couldn't seem to find where they might be? Is that something listed in the dictionary?
Thank you in advance,
Ryan
I just find the particular preference pane I want to use, for example in the /System/Library/PreferencePanes folder, and look up the bundle identifier (in the Info.plist file) - in this case it would be com.apple.preference.printfax.
Related
In Eclipse I could hit Ctrl+O and get a popup which I could use to get an overview of everything in the current class, pick an entry, and jump to it.
In idea, there is Alt+7, but I have a few issues with it. First, the keyboard doesn't seem to put its focus there. I have to take my hand off the keyboard and use the mouse to place the focus on the Structure dock.
I also don't like how it's taking up real estate. I don't want to change how things are laid out if I want to see the structure. I would like a more non-invasive popup, and handier and snappier.
Is there another feature that gives me quick access in the form of a popup preferably, like Ctrl+O provides in Eclipse?
Another nice feature would be to be able to use the J and K keys to move up and down the selection, instead of having to use the cursor keys. I'm using IdeaVim, so the normal workflow when editing files, is that both hands stay in a touch-type position. It would be nice if I can use the various navigation features also using vim keys...
Perhaps there is a way to enable this, that I haven't discovered yet?
IntelliJ equivalent of Eclipse's CTRL+O is CTRL+F12 (⌘+F12 on Mac), which will give you more or less the same pop-up as in Eclipse. But I'm not sure if it can be navigated using j and k keys.
More details can be found in the IntelliJ help.
I am new to codenameone and I am thinking about moving a large project from our current environment to it. So, I wanted to run a few tests but I already failed by setting up a project, since I do not find the place where to set it up :)
So I used Google and found a Video "HOW DO I - CREATE A BASIC HELLO WORLD APPLICATION & SEND IT TO MY DEVICE USING INTELLIJ/IDEA" and thought "Yeah, exactly what I need!". But when you start the video, one of the first sentences is "We are going to use Eclipse....", so I guess someone has published the wrong video.
Nevertheless, can someone tell me, where I can make the proper project settings (like in the mentioned video on 07:50) in IDEA ?
Type CTRL + ALT + SHIFT + S to open the Project Settings dialog box.
You can read more about it here.
I guess your answer fits for Windows Systems.
Nevertheless, on OSX you have to go to the preferences and there to "Other Settings" and there you can do all adjustments.
Personally, I hoped that they included the possibility to create multiple apps from one project (like e.g. Adobe AIR) :(
This may be a simple question, but I'm not even sure of the search terms to find the answer.
I have two winforms applications which have been derived from the same code. One supersedes the other, but occasionally we have to us the older VB app for legacy information.
The problem is, if one app is already open, when the icon of the other app is clicked, nothing happens. The currently open app's window becomes selected like it has just been opened. Nothing else.
What I would like to happen is that both apps can open at the same time. They reference different DB's so there's not clash there.
I thought it might be something to do with the name spaces, so I changed those, but to no avail.
Any thoughts, I'm sure its a simple answer.
Mark
Look at Project Settings (Double Click on "My Project" in the Project Explorer).
In the Application-Tab you'll find the setting "Create Single Instance Application"
(I'm translating from German Version, may be slighlty different).
Better Alternative:
Basicly it is useful to keep this setting as it is and go for the alternative:
In that same spot, you find a button "Assembly Information". Click on that and change the first number of the "Assembly Version". Now the older and newer versions are two different programs for Windows and will run parallel.
Go to, 'project properties', Tab 'Application', section 'Windows application framework properties'. There is a checkbox called 'Make single instance application'. Maybe that's on...
I had the same problem with two applications. They had different assembly versions and I wanted to avoid unchecking "Make single instance application", so I kept looking until I found that they had the same GUID. Just changed one of them and problem solved. You can change the GUID in the Assembly Information dialog. Hope it helps.
I am currently using xcode and I find it's lack of tabs quite disturbing.
I currently use command-shift-d to search through all the files, or ctrl-1 to open the history of files that were recently opened.
It works but I find it less effective than just tabbing through the few files i am currently working on.
Is there any way, third party or not, to enable some sort of tabbed organization?
If not, is there any other way to quickly navigate through a subset of files?
XCode 4 now supports tabs. You can enable by selecting "View / Show Tab Bar" menu.
Not really, but one alternative is View > Show Favorites Bar and drag five or six frequently-used source files into it. Not as flexible as tabs but satisfies your request for "quickly navigate through a subset of files".
The traditional way is to use the detail view. Get the files you want in the Detail view by one of these means:
Put them all in the same group, then select the group
Enter a filter expression in the Search Bubble that narrows the items shown
Define a Smartgroup that includes just the files you want
Get a list of the files as a Find in Project result, then select that item in Find Results
Then you can use the Detail View as your list of interesting files and navigate through it quickly with the up and down arrows.
First of all, you can use Textmate (which I believe has Xcode integration). Otherwise:
Window (Menu) -> Organizer (ctrl-command-o)
At the bottom of that window, if you don't have two panes, click the square to the right of the gear. Now drag code files of interest to the left, grey pane--a single click or arrow up/down will open the file in the editor pane.
If you do open a bunch of windows, as vog suggested, you'll need to command-~ through them--not alt-tab.
Cheers.
The Xcode source code editor allows you to choose the file from a list. It's two clicks instead of one (as it would be with tabbing), but it's better than nothing.
In addition, you can simply Alt-Tab through your open source code windows. This is not slower than tabbing, and has the same effect since the source code windows are usually placed exactly one in front of another.
You'll definitely want to read through this. (XCode Tips and Tricks you wish you know about two years ago - SO)
You can navigate between files using "Recent Files"
Write simple applescript:
tell application "Xcode"
tell application "System Events"
keystroke "1" using {control down} -- open "Related Files"
key code 125 -- choose "Recent Files" ("keystroke down" doesn't work)
keystroke return -- enter to "Recent Files"
key code 125 -- choose previous file
end tell
end tell
And bind it to some shortcut using for example FastScripts(free up to 10 bindings)
I have this script on "Control" + "`". (XCode 4)
Hope this will help
You may also try an Xcode plugin I've just released - it's called Code Pilot and solves a lot of issues of Xcode's navigation, making it more TextMate/Eclipse-like.
Check it out here: http://macoscope.net/en/mac/codepilot/
I hope this helps!
It is simple with XCode 7.2
GoTo View>>Show Tab Bar
This will show the tab bar.
RightClick on the New Tab and click -->"NEW TAB"
Then We can see all the files in tabs.
how can i add a custom view to the right click menu of every file in os x finder?
e.g. i want to display the image if it is an image type and do some custom action etc.
is this possible with c or objective-c? if yes how? (without using any available tool)
You need to write a Menu Manager plugin based on CFPlugin. Unfortunately, this involves some really dated Carbon stuff. There is a tutorial from a few years ago at mactech
Note that this stuff may be obsolete with Snow Leopard, though whatever they come up with is probably going to be much easier to deal with than Menu Manager/CFPlugin cruft.