Remote Desktop AppleScript 指令詞彙參考

瞭解 Remote Desktop App 的類別與指令。

【重要事項】此參考主題並非用來取代完整的 AppleScript 指令詞彙(您可在「工序指令編寫程式」中進行檢視)。它納入輔助說明是為了可供您快速參考,以便在輔助說明中透過搜尋來尋找 AppleScript 指令。如需 Remote Desktop 中支援工序指令之物件和事件的最新完整資訊,請參閱完整指令詞彙。

add v:將電腦加入到作業中。

add computer:電腦。

to computer list:要加入電腦的電腦列表(或作業)。

control v:啟動電腦的控制作業。

control computer:要控制的電腦。

execute v:執行作業。

execute task:要執行的作業。

[on computer list]:要在其上執行作業的電腦列表(或電腦)。

observe v:啟動監看作業。

observe item:要監看的電腦、列表或電腦列表。

release v:將電腦從控制或監看作業中釋出。

release item:要釋出的電腦、列表或電腦列表。

remove v:將電腦從作業中移除。

remove computer:要移除的電腦。

from computer list:要從其電腦的電腦列表(或作業)。

stop v:停止執行「共享螢幕」作業。

stop task:要停止的作業。

application n [inh. application; see also Standard Suite]:Remote Desktop 最上層的工序指令物件。

元件

contains computers, computer lists, copy items tasks, copy to me tasks, documents, empty Trash tasks, install package tasks, lock screen tasks, logout tasks, open app tasks, open item tasks, rename computer tasks, restart tasks, send message tasks, send unix command tasks, set local startup disk tasks, set network startup disk tasks, share screen tasks, shutdown tasks, sleep tasks, unlock screen tasks, upgrade client tasks, wake up tasks, windows.

PROPERTIES

selection(item, r/o):目前所選內容。

computer n [inh. item]:實體電腦。

元件

contained by application, computer lists.

PROPERTIES

boot volume(Unicode text, r/o):電腦的啟動卷宗。

CPU(Unicode text, r/o):電腦的 CPU 類型。

current application(Unicode text, r/o):電腦上目前最上層的 App。

current user(Unicode text, r/o):電腦上目前已登入的使用者。

DNS name(Unicode text, r/o):電腦的 DNS 名稱。

id(Unicode text, r/o):電腦的唯一識別碼(UUID)。

Internet address(Unicode text, r/o):電腦的 Internet 位址。

last activity(date, r/o):電腦上最近活動的時間。

last contacted(date, r/o):上次與電腦聯絡的時間。

machine model(Unicode text, r/o):電腦的機型。

name(Unicode text, r/o):電腦的名稱。

physical memory(Unicode text, r/o):電腦中安裝的實體 RAM。

primary Ethernet address(Unicode text, r/o):電腦的主要乙太網路位址。

remote desktop version(Unicode text, r/o):電腦上執行之 Remote Desktop 用戶端的版本。

status message(Unicode text, r/o):電腦的目前狀態。

system version(Unicode text, r/o):電腦上執行的 OS X 版本。

computer list n [inh. item]:包含電腦的列表。

元件

contains computers; contained by application.

PROPERTIES

id(Unicode text, r/o):電腦列表的唯一識別碼(UUID)。

name(Unicode text):電腦列表的名稱。

copy items task n [inh. task > item]:拷貝項目至目標電腦上。

元件

contained by application.

PROPERTIES

bandwidth limit(integer):網路用量限制,以 kilobyte∕秒計(0 = 無限制)。

conflict resolution(ask what to do/rename the existing item/rename the item being copied/replace/replace if older):指定如果此位置中已有項目存在,要執行的動作。

copy items(list):要拷貝的檔案和∕或檔案夾列表。

destination group(Unicode text):如果持有人設為「特定持有人」,則為目的地電腦上的有效群組名稱。

destination owner(Unicode text):如果持有人設為「特定持有人」,則為目的地電腦上的有效使用者名稱。

destination path (alias):如果位置設為「特定檔案夾」,則為目的地檔案夾的完整指定路徑。

encrypting(boolean):項目在拷貝期間是否應加密。

location(Applications folder/current users desktop folder/current users home directory/same relative location/specific folder/system folder/system fonts folder/system preferences folder/top folder of the boot disk):要拷貝至的目標位置。

ownership(current console user/current owner/destination folder owner/specific owner):指定拷貝項目的新持有人。

should open(boolean):項目在拷貝後是否應打開。

stopping on error(boolean):如果在拷貝期間發生錯誤,是否應終止拷貝。

copy to me task n [inh. task > item]:將項目從目標電腦拷貝至管理者電腦

元件

contained by application.

PROPERTIES

bandwidth limit(integer):網路用量限制,以 kilobyte∕秒計(0 = 無限制)。

conflict resolution(ask what to do/rename the existing item/rename the item being copied/replace/replace if older):指定如果此位置中已有項目存在,要執行的動作。

copy items(list):要拷貝的檔案和∕或檔案夾列表。

destination path(alias):如果位置設為「特定檔案夾」,則為目的地檔案夾的完整指定路徑。

encrypting(boolean):項目在拷貝期間是否應加密。

location(Applications folder/current users desktop folder/current users home directory/same relative location/specific folder/system folder/system fonts folder/system preferences folder/top folder of the boot disk):要拷貝至的目標位置。

empty trash task n [inh. task > item]:清空目標電腦上的「垃圾桶」。

元件

contained by application.

install package task n [inh. task > item]:在目標電腦上安裝套件。

元件

contained by application.

PROPERTIES

after installing(attempt rest../GlobalArt/do nothing/force immediate restart):指定在安裝套件後要執行的動作。

bandwidth limit(integer):網路用量限制,以 kilobyte∕秒計(0 = 無限制)。

delegating to Task Server(boolean):是否應將此作業指定至「作業伺服器」。

encrypting(boolean):套件在拷貝期間是否應加密。

packages(list):要安裝的套件列表。

stopping on error(boolean):如果在拷貝期間發生錯誤,是否應終止拷貝。

lock screen task n [inh. task > item]:在目標電腦上鎖定螢幕。

元件

contained by application.

PROPERTIES

message(Unicode text):要在螢幕上顯示的訊息。

logout task n [inh. task > item]:在目標電腦上登出目前的使用者。

元件

contained by application.

open application task n [inh. task > item]:在目標電腦上啟動應用程式。

元件

contained by application.

PROPERTIES

application(alias):要打開之應用程式的路徑。

open item task n [inh. task > item]:在目標電腦上打開檔案。

元件

contained by application.

內容

files(list):要打開的檔案列表。

power on task n [inh. task > item]:啟動目標電腦。

元件

contained by application.

rename computer task n [inh. task > item]:更改目標電腦的名稱。

元件

contained by application.

內容

naming uniquely(boolean):是否應強制每部機器有唯一數字名稱。

target name(Unicode text):電腦的新名稱。

restart task n [inh. task > item]:重新啟動目標電腦。

元件

contained by application.

內容

user can save changes or cancel(boolean):是否允許使用者儲存更動或取消重新開機。

send message task n [inh. task > item]:傳送文字訊息至目標電腦。

元件

contained by application.

內容

message(Unicode text):要在螢幕上顯示的訊息。

send unix command task n [inh. task > item]:將 UNIX 指令或工序指令傳送至目標電腦。

元件

contained by application.

內容

script(Unicode text):要執行的指令字串。

showing output(boolean):是否應在視窗中顯示指令的完整輸出。

user(Unicode text):執行指令的使用者身分。

set local startup disk task n [inh. task > item]:設定在目標電腦上的啟動卷宗。

元件

contained by application.

內容

boot volume(Unicode text):要啟動的特定磁碟機卷宗(選擇性)。

restarting(boolean):在設定啟動卷宗後,機器是否應重新開機。

set network startup disk task n [inh. task > item]:設定在目標電腦上的啟動卷宗。

元件

contained by application.

內容

from server(Unicode text):要從其啟動之伺服器的 Internet 位址。

mount volume(Unicode text):伺服器上要裝載的卷宗名稱。

restarting(boolean):在設定啟動卷宗後,機器是否應重新開機。

share screen task n [inh. task > item]:將電腦螢幕共享至目標電腦。

元件

contained by application.

內容

source computer(computer):要共享其螢幕的電腦(管理者以外)。

shutdown task n [inh. task > item]:將目標電腦關機。

元件

contained by application.

內容

user can save changes or cancel(boolean):是否允許使用者儲存更動或取消關機。

sleep task n [inh. task > item]:讓目標電腦進入睡眠。

元件

contained by application.

task n [inh. item]:作業。此抽象類別代表 Remote Desktop 可執行的作業。作業的每個特定類型都有子類別。

元件

contained by application.

內容

computer list(computer list):與作業相關的電腦列表。

id(Unicode text, r/o):電腦的唯一識別碼(UUID)。

name(Unicode text):作業的名稱。

recurrence(Unicode text, r/o):描述作業重複事件的字串(若有定義的話)。

starting at(date):若有排定作業,則為第一次執行的日期和時間。

unlock screen task n [inh. task > item]:在目標電腦上解鎖螢幕。

元件

contained by application.

upgrade client task n [inh. task > item]:在目標電腦上升級 Remote Desktop 用戶端。

元件

contained by application.

wake up task n [inh. task > item]:喚醒目標電腦。

元件

contained by application.