タグ別アーカイブ: Mac

Alfred3作目!Evernoteで日記をつけよう、Evernote Diary!

久々にAlfredネタです。
はじめてEvernoteと連携してみました。
下はAlfred Extention本体とAlfred持ってない人用のコード。

Evernote Diary – Alfred Extention

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
-- Alfred Extentionのままでサーセン
property nb : ""
 
on alfred_script(q)
	set notetext to q as text
	set t to do shell script "date +'%Y/%m/%d'"
	set timeStr to time string of (current date)
	set AppleScript's text item delimiters to ","
	try
		set tit to text item 1 of notetext
		set txt to text item 2 of notetext
	on error
		set tit to ""
		set txt to text item 1 of notetext
	end try
	set tit to "[" & timeStr & "] " & tit
	set t to t & "の日記"
 
	tell application "Evernote"
		if nb = "" then
			set foundNotes to find notes "intitle:\"" & t & "\""
			set found to ((length of foundNotes) is not 0)
			if not found then
				set curnote to create note with html "" title t
				tell curnote to append html "<h3>" & tit & "</h3>"
				tell curnote to append text txt
				tell curnote to append html ""
			else
				repeat with curnote in foundNotes
					tell curnote to append html "<h3>" & tit & "</h3>"
					tell curnote to append text txt
					tell curnote to append html "<br>"
				end repeat
			end if
		else
			set foundNotes to find notes "notebook:\"" & nb & "\"" & " intitle:\"" & t & "\""
			set found to ((length of foundNotes) is not 0)
			if not found then
				set curnote to create note with html "" title t notebook nb
				tell curnote to append html "<h3>" & tit & "</h3>"
				tell curnote to append text txt
				tell curnote to append html ""
			else
				repeat with curnote in foundNotes
					tell curnote to append html "<h3>" & tit & "</h3>"
					tell curnote to append text txt
					tell curnote to append html "<br>"
				end repeat
			end if
		end if
	end tell
	do shell script "afplay /System/Library/Sounds/Hero.aiff"
end alfred_script

カテゴリー: アプリケーション | タグ: , | コメントをどうぞ

ServiceAppleScriptで右クリックからAppleScript実行 (※Automator不要)

久々に神アプリ発見!!

いつもいろんなアプリを探してますが、今回は神アプリと呼べるアプリを発見しました!
偶然にもMacの手書き説明書さんで紹介されてる、その名もServiceAppleScript。

ServiceAppleScript – AppleScriptを実行するサービスメニュー項目を作るアプリケーション


これを使えばAppleScriptを右クリックのサービス項目から使えます!
このアプリはかなりの需要があるんじゃないでしょうか!

カテゴリー: アプリケーション | タグ: | コメントをどうぞ

MarsEdit買いました!!

ずっと気になってたブログエディタ、MarsEditをついに買いました!

今まではmiで書いてWebのエディタに貼りつけてたんですが、もう限界。

miはホントお世話になって、タグとか登録しまくってて、かなり便利。

ブログエディタではないけど、細かい設定でほぼブログエディタとなってました。

今までありがとうmi、これからも使うんでよろしく。

カテゴリー: アプリケーション | タグ: , | コメントをどうぞ

2作目Alfred拡張、今度は期待できる!爆速リネームアプリ、Light Renamer!!

この間ご紹介したキーボードランチャAlfredの拡張、2作目作りました!


今回はかなりいい出来!!(前回が前回なだけに) 間違いなく便利です!


その名もLight Renamer!Alfredから爆速で高性能なリネームが出来る!


これは見なきゃ損!使わなきゃ損!ではさっそくご紹介します!(`・ω・´)

カテゴリー: アプリケーション | タグ: , | コメントをどうぞ

お洒落ランチャAlfredにスクリプト連携!!さっそくタイマー作ってみたよ!

「Alfredというキーボードランチャで面白いことが出来るよ!!」と、Twitterで@syunkuroさんに教えてもらいました。


Macに数多くあるランチャの中でも、軍を抜いたオシャレ度でのAlfred。


そのAlfredに、スクリプトと連携できる機能が実装されています。(有料パッケージのみ)


主には公式synkuroさんのブログを見ていただくとして、ザックリ説明するとAlfredからスクリプトの変数を直接投げられるという、なんとも面白そうな機能。


まだアップデートには出てきませんが、公式からver.0.9.9をダウンロードし、Powerpackを購入すると使えます。


そんなわけで、僕も一つ作ってみました。

カテゴリー: アプリケーション | タグ: , | コメントをどうぞ