我有數百個自定義FileMaker Pro .fp7文件,我需要打開菜單項「導出腳本...」並保存。這是迄今爲止我所擁有的。AppleScript可以逐個打開文件夾中的所有文件。以後粘貼文件名的別名列表?
tell application "Finder"
set fl to files of folder POSIX file "/Users/EDITOR/Desktop/DROP/" as alias list
end tell
repeat with f in fl
tell application "FileMaker Pro"open f
activate
end tell
tell application "System Events"
tell process "FileMaker Pro"
click menu item "Export Script..." of menu "File" of menu bar item "File" of menu bar 1 of application process "FileMaker Pro" of application "System Events"
delay 0.4
keystroke "/Users/EDITOR/Desktop/DROP/"
end tell
end tell
end repeat
我的挑戰是:FileMaker Pro不會將文件名帶入導出名稱窗口。它只說Untitled.tab。有沒有辦法來源或複製的文件名,因爲它正在打開或別名?將其保存在剪貼板中以便稍後粘貼...或者,讓重複功能暫停以輸入每個.tab文件名。
感謝, G.
FileMaker Pro實際上擁有它自己的** Applescript Dictionary **,這意味着它可以編寫腳本,或者您可以直接編寫代碼而無需使用UI腳本。看看這裏:http://www.mactech.com/articles/mactech/Vol.22/22.04/ScriptingFileMakerPro/index.html – scohe001
爲什麼這麼多的數據庫文件? –
不幸的是,這些數據庫是爲電影行業定製的一個文件的實例,具有一個獨特的目的和不可寫的目的。 – Hence