Volume Number: 21 (2005) Issue Number: 11 Column Tag: Programming AppleScript Essentials Introduction to Scripting iCal by Benjamin S. Waldie For the past couple of articles, I have discussed scripting specific applications. By now, you should be starting to realize AppleScript terminology varies from application to application. Some applications don't support AppleScript at all, some are more scr
Categories 10.4対応 (153) 10.5対応 (510) 10.6対応 (290) AppleScript Studio (8) AppleScriptObjC (11) GUI Scripting (31) How To (40) news (54) shell script (64) アプリケーション操作(app control) (407) Acrobat (4) AddresBook (6) Aperture (3) ASDictionary (1) Automator (2) Camino (3) ColorSyncScripting (1) console (1) Cyberduck (3) Database Events (6) Diary++X (12) Dictionary (2) DiskWarrior (2) Dock (5) DragThing (3
Categories 10.4対応 (150) 10.5対応 (507) 10.6対応 (287) AppleScript Studio (8) AppleScriptObjC (11) GUI Scripting (31) How To (40) news (54) shell script (64) アプリケーション操作(app control) (404) Acrobat (4) AddresBook (6) Aperture (3) ASDictionary (1) Automator (2) Camino (3) ColorSyncScripting (1) console (1) Cyberduck (3) Database Events (6) Diary++X (12) Dictionary (2) DiskWarrior (2) Dock (5) DragThing (3
Mac OS X 10.6.xで動作テストしてます。作ってちょっとテストしただけのものが多いです。 最初に このページのRubyCocoa関係のAppleScriptのソースなどはほぼAppleScriptじゃないので、AppleScriptの勉強を始めたばかりの人には参考にならないと思います。ある程度やっていて、こういうことできないかなあ、って時に役に立つかもしれません。AppleScriptを始めたばかりの人にはAppleScript PARK / Introduction / Basicなどがお勧めです。 このページは非常に長いですが、JavaScriptがオンでUAにGeckoと書いてあるブラウザ(Safari,Firefox,Chrome等)の場合、左端にアウトラインが表示されます。アウトラインの▶をクリックすると小要素が表示されます。アウトラインで見たい内容を探しながら見ると、
AppleScriptの穴 Useful & Practical AppleScript archive. Click '★Click Here to Open This Script' Link to download each AppleScript — Created 2017-05-25 23:27:42 +0900 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" set aList to {{0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0
saykanaコマンドという素晴らしいコマンドが紹介されていた。コマンドに続けて入力した、ひらがな・かたかな・英数字を日本語で読み上げてくれるのだ。こういうのを見つけると、とりあえず試してみたくなる。 $ saykana にほんごをはなそう $ saykana 123 $ saykana ABC 調子良く読み上げてくれた!面白い! ところが、意地悪く漢字混じりの文章を試すと... $ saykana 日本語を話そう ERR:(105) invalid kana string. 日本語を話そう コマンド名が sayかな なのだから当然の仕様だ。 環境 MacBook OSX 10.5.7 bash mecabの利用 ところで、自分のMacBookでは以前、mecabをインストールしたことを思い出した。 ベイジアンフィルターで日本語を分類する。 - ザリガニが見ていた...。 もしインストール
AppleScriptの穴 Useful & Practical AppleScript archive. Click '★Click Here to Open This Script' Link to download each AppleScript — Created 2017-03-06 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" set a1Rect to {origin:{x:10, y:10}, |size|:{width:100, height:100}} set b1Rect to {origin:{x:30, y:30}, |size|:{width:100, he
AppleScriptの穴 Useful & Practical AppleScript archive. Click '★Click Here to Open This Script' Link to download each AppleScript — Created 2017-10-29 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" –Chapter 6 Lib.asobjcex3doc set theList to {5, 2, 9, 4, 2, 6, 3} set longList to my insertItem:99 atIndex:5 inList:theList –>
GUI Scripting(UI Eleemnt Scripting)によるAppleScriptをどう書くのか、という話題がUsers Groupのミーティングで出ました。 通常のAppleScriptによるScriptingでは、アプリケーションがAppleScriptに対して解放している機能の呼び出しやオブジェクトへのアクセスを行うことになります。いわば、内部からコントロールする方法です。 一方のGUI Scriptingは、メニューのどのアイテムをクリックするとか、ウィンドウの指定のボタンのタイトルを取得するとかいったように、アプリケーションを外側からコントロールする方法であり、AppleScriptに対応していない機能や、AppleScriptに対応していないアプリケーションをもコントロール可能にする技術です(ただし、プログラムで動的にGUI部品を生成しているようなものは、コント
たまたま、Mac OS X Hintsに掲載されているのを見つけ、半信半疑で実行してみたら……open、print、quit、closeなどの基礎的な命令をPreview.appが受け付けるようになりました。 なんでも、AppleのAppleScript製品担当のSal Soghoianがコメント欄にそのような投稿をしたのだとか(汗) そもそも、なぜそのようなゲリラ的なことをやるのか? Mac OS Xの製品版のPreview.appにちゃんとしたScript対応機能を持たせればそれでよいのではないか? 疑問は尽きないのですが、とりあえずSal Soghoianが書いた内容であれば、とくに転載しても問題はないでしょう。 try tell application “Finder“ set the Preview_app to (application file id “com.a
AppleScriptの穴 Useful & Practical AppleScript archive. Click '★Click Here to Open This Script' Link to download each AppleScript set aList to {50, 24} –max-num, cur-num set cList to {".", "o"} set aRes to retProgressChar(aList, cList) of me –> "ooooo….." on retProgressChar(aList, cList) set barCharLen to 10 set allNum to item 1 of aList set doneNum to item 2 of aList if doneNum > allNum then return
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く