My_Play_Lists ~BlackCatWhiteTail’s blog~

Talk About My Favorite Songs

applescript numbers > はじめに

ApplescriptでNumbersを操作する

 Exelに対するVBAのように,NumbersをApplescriptで操作してみたい.
 しかし,関連記事がほぼない.Applescript,NumbersいずれもVBA,Exelに比べると利用者が少ないのが原因かもしれない.
 ただし,MacあるいはNumbersを使う人達には潜在的なニーズがあるかもしれない.そう考えて,やってみることにした.

2つの参考記事(基本と応用)

 はじめは我流でやってみたが,まったくうまくいかなかった.セルに数字を入力することすらできなかった.
 そこであらためて英語も含めて関連記事を探し,素晴らしい記事を見つけることができた[1].私の基本技術はすべてその記事から得た.
 ただし,上記記事の解説は基本的な動作のみで,実務での使い方はあまり述べていない.
 ところで,VBAは解説サイトのなかには基礎から応用まで順に詳細に説明されているものもある.そこでVBA解説サイトで行われている課題をApplescript-Numbersで解決していけば,実務に利用できる技術が身につくのではと考えた.私が尊敬するExel-VBAの解説サイト[2]の通りに進めていくことにした.

[1]AppleScript and Numbers Doing "Crunches" Just Got Easier
[2]エクセル(Excel)マクロVBAの全一覧|エクセルの神髄 鵜原パソコンソフト研究所

その他感想

 訳あって大量のデータを処理する必要があった.手作業では到底終わらない量だった.そこで,人生で初めてVBAを使おうとした.しかし,VBA初学者のため,うまくいかなかった.そこで,Macでとっつき易い(ユーザーフレンドリー)システムがないかと探した.しかし,残念なことにNumbersにはVBAに相当するシステムはなかった.さらに調べると,Macには標準でapplescriptという強力なシステムがあると知った.しかし,applescriptでNumbersを操縦しようとする者自体,日本には少ないらしく,関連記事が皆無で絶望的な気持ちになった.結局,VBAのレコード機能,関数をVBAに併用してなんとかした.

Translated to English
Operate Numbers with Applescript

I want to operate Numbers with Applescript like VBA for Exel.
However, there are almost no related articles. It may be because Applescript and Numbers have fewer users than VBA and Exel.
However, there may be potential needs for those who use the Mac or Numbers. So I decided to try it.

Two Reference Articles (Basic And Applied Technichs)

At first I tried it myself, but it did not work at all. I couldn't even set a number in the cells.
I searched for related articles again, including English. Finally I found a great article[1]. All my basic skills came from the article.
However, the explanation of the above article is only basic technique. It does not mention much how to use it in business.
By the way, some sites teach us VBA in detail from basic to applied.Therefore, I thought that if I solve the problem on the VBA educational site with Applescript-Numbers, I would be able to acquire the technique that can be used for practical use.I will explain how to operate Numbers with Applescript, according to the commentary site of Excel-VBA which I respect[2].

Miscellaneous feeling

For a reason, I had to deal with a large amount of data. The amout of data was too much to finish deadline.So I tried to use VBA for the first time in my life.However, it didn't work because I was a beginner to VBA.So I looked for a user-friendly system on my Mac.Unfortunately, Numbers did not have a system equivalent to VBA.After further research, I knew that Mac has a powerful system called "Applescript" as default.However, those who try to control Numbers with applescript themselves are rare in Japan.No related articles is there, so I felt "Oh My God".Eventually, I managed to finish tasks, using the VBA record function and formulas of Excel.

 このウェブサイトについて

 練習用のサイトです.

 自分の好きな曲について感想を述べます.

 また,世に役に立つかもと考えたことも書きます.

 

TOP 1 To 5

Title Artist Album
ロックバンド 中村中 私を抱いて下さい
犬の生活 SEX MACHINEGUNS SEX MACHINEGUNS
Megalovania Toby Fox UNDERTALE Soundtrack
Bokura No Fly Away Base Ball Bear Bokura No Fly Away - single
人魚の檻 陰陽座 迦陵頻伽(Ka Ryo Bin Ga