��ҹ��Ǣ�͡�͹˹�� :: ��ҹ��Ǣ�ͶѴ� |
����� |
��ͤ��� |
youngkoi
�������: 01 Apr 2011 �ͺ: 5
|
�ͺ�����: Fri Aug 05, 2011 2:12 pm ����ͧ: apple script ����Ѻ���ҧnetwork �͹�Դ����ͧ |
|
|
��������Ǥ�Ѻ��ѧ�ҡ����������ѡ�Ë��Ѻ ����Ѻ��ҹ����ͧ������ҧ network �������������к� network ������ remote ipad iphone ���Ѻ
��apple script �Ф�Ѻ ��͹ run ����Դ universal access � system pref. �ԡ
Enable access for assistive devices �ҡ��� run apple script ���Ѻ
-- edit by noom 5 aug 11
property NetworkName : "my_x3"
property NetworkPassword : "noom123456789"
property CreateMenuName : "Create Network�"
try
do shell script "/usr/sbin/scselect " & NetworkName
delay 2
end try
tell application "System Events"
tell process "SystemUIServer"
tell menu bar 1
set menu_extras to value of attribute "AXDescription" of menu bar items
repeat with the_menu from 1 to the count of menu_extras
if item the_menu of menu_extras is "Airport Menu Extra" then exit repeat
end repeat
tell menu bar item the_menu
perform action "AXPress"
delay 0.2
perform action "AXPress" of menu item CreateMenuName of menu 1
end tell
end tell
repeat until exists window 1
delay 0.5
end repeat
tell window 1
keystroke NetworkName
-- click checkbox 1
-- keystroke tab
-- keystroke tab
-- keystroke tab
-- keystroke NetworkPassword
-- keystroke tab
-- keystroke NetworkPassword
-- click pop up button 2
-- click menu item 2 of menu 1 of pop up button 2
delay 0.5
click button 1
end tell
end tell
end tell
��ҵ�ͧ������ �Դ����ͧ���� script ��� run ��¡���Ф�Ѻ������ҵ�ͤ�Ѻ |
|
���仢�ҧ�� |
|
|
youngkoi
�������: 01 Apr 2011 �ͺ: 5
|
�ͺ�����: Fri Aug 05, 2011 2:23 pm ����ͧ: |
|
|
�������ö�� automator �������Ѻ�¡�� ���ҧ service ��Ѻ���͡ run apple script ���ǡ�save ��Ѻ �Դ system pref. ���͡ account �ͧ�������͡ login item
���͡ ���automator �����ҷ�����Ѻ
���͹������ö���ٻ��÷ӵ�ҧ����ҡ��ǻ��Ѻ |
|
���仢�ҧ�� |
|
|
discoveryhifi
�������: 25 Feb 2008 �ͺ: 1166 �������: BKK. Thailand
|
�ͺ�����: Fri Aug 05, 2011 11:12 pm ����ͧ: |
|
|
��������Ѻ �ѹ����繡�����ҧ adhoc network ����Ѻ iPhone ���� iPad �����������ͧ����дǡ�դ�Ѻ...
��ҵ�ͧ���Ẻ Remote Desktop ������ҡ ��§ add VNC Server ����� login item �ա��ǡ稺��Ѻ... _________________ discovery hifi |
|
���仢�ҧ�� |
|
|
|