Bonjour,
J'essaye d'automatiser l'envoi de mes fiches contact (vCard) via Bluetooth.
J'aie pour le moment ce morceau de code, mais petit soucis sur la selection de la ligne de la windows 1
Une idée ?
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14 set fileToSend to the (path to the documents folder as string) & "AddressBook.vcf" as string tell application "Finder" to open fileToSend using application file id "com.apple.BluetoothFileExchange" activate application "Bluetooth File Exchange" tell application "System Events" tell process "Bluetooth File Exchange" repeat until exists window 1 delay 0.5 end repeat select row 1 of table of scroll area "Bluetooth Devices" of window 1 click button "Send" of window 1 end tell end tell
Merci pour votre aide
Thais