Macå½¢å¼ã®NASã®ãã¡ã¤ã«ãã¹ãWindowså½¢å¼ã«Automatorã§å¤æãã¦ã¯ãªãããã¼ãã«ã³ãã¼ãã
ãWindows形式のNASのファイルパスをMac形式にAutomatorを利用して変換し開く - めも帖ãããéã«ãMacå½¢å¼ããWindowså½¢å¼ã«Automatorã§ãã¦ã¿ããã¨æãã¾ããä»åãã調ã¹ãããMac形式のNASのファイルパスをWindowsの形式に変換する君 - 僕の車輪の再発明ãã¨ãããã¼ã¸ãããã¾ããã
ãã¡ã¤ã«ãã¹ãåå¾ãããã©ã°ã¤ã³ãAutomatorã«ããã
- ãã©ã°ã¤ã³ã®ãã¼ã¸ã«ãå ¥ãæ¹ãæ¸ãã¦ããã®ã§ãã®éãã«
- http://www5.wind.ne.jp/miko/mac_soft/automator_actions/pgs/GetFilePathAMA.html
Automatorã®æ°è¦ã§ä½ãå§ãã
- æ¸é¡ã®é¸æï¼ããµã¼ãã¹ããé¸æ
ããµã¼ãã¹ãã®è¨å®
- åãåãé¸æé ç®ããã¡ã¤ã«ã¾ãã¯ãã©ã«ãã
- æ¤ç´¢å¯¾è±¡ããã¹ã¦ã®ã¢ããªã±ã¼ã·ã§ã³ã
ã¢ã¯ã·ã§ã³ã®é¸æ
- ãã¡ã¤ã«ãã¹ãåå¾
- ã·ã§ã«ã¹ã¯ãªãããå®è¡
- ã¯ãªãããã¼ãã«ã³ãã¼
ããã¡ã¤ã«ãã¹ãåå¾ãã®ãã¤ã³ã
- åå¾æ¹æ³ããURLãã«ãã¾ã
- POSIXã ã¨ããWindowså½¢å¼ã®NASã®ãã¡ã¤ã«ãã¹ãMacå½¢å¼ã«å¤æãããã§éãããã©ã«ãã¼ãããã¹ãåå¾ã§ããªããã¨ããã£ãã®ã§ã
ãã·ã§ã«ã¹ã¯ãªãããå®è¡ãã®ãã¤ã³ã
- URLãªã®ã§ãã³ã¼ããå¿
è¦
- æ¥æ¬èªãæ··ããã®ã§å¤æããããã®ã©ã¤ãã©ãªãããã
- Windowså½¢å¼ã¸ã®å¤æå¦çãå¿ è¦
URLã®ãã³ã¼ãã®ããã«nkfã®ã¤ã³ã¹ãã¼ã«
æ¥æ¬èªã®å¦çã®ããã«ãnkf ãå¿ è¦ãã§ããMacã«ã¯å ¥ã£ã¦ããªããä»å㯠brew 㧠nkf ãå ¥ãã¾ãã
$brew install nkf ==> Downloading http://dl.sourceforge.jp/nkf/59912/nkf-2.1.3.tar.gz ######################################################################## 100.0% ==> make CC=clang ==> make install prefix=/usr/local/Cellar/nkf/2.1.3 MKDIR=mkdir -p ãããã /usr/local/Cellar/nkf/2.1.3: 4 files, 352K, built in 5 seconds
ã·ã§ã«ã¹ã¯ãªããã®è¨å®
- å ¥åã®å¼ã渡ãæ¹æ³ï¼ãå¼æ°ã¨ãã¦ããé¸æ
- nkf ãå©ç¨ãã¾ããã.bash_profile ãªã©ãèªã¿è¾¼ãã§ã¯ãããªãã¿ãããªã®ã§ã/usr/local/bin/nkf ã¨ãã¾ãã
- sed ã§ã®å¦çã¯é ãå½¼æ¹ã®è¨æ¶ã«ãããã«ããã¨ã³ã¸ãã¢ããªã®ã§ä¸å®
echo $@ | tr % = | /usr/local/bin/nkf -WwmQ | sed 's/.*@/\/\//g' | sed 's/\//\\/g'
ä¿å
- ä¿åæã«ã¤ããååãããµã¼ãã¹åã«ãªãã¾ã