【发布时间】:2015-10-16 14:46:06
【问题描述】:
在 Mac OSX Yosemite 上运行 Filemaker 13。 我们有一个 quicklook 脚本,直到 Yosemite 之前,它都可以正常工作。通常,它会在容器字段中获取一个 .doc/.docx 文件并在 Quicklook 中打开它。
但是在 Yosemite 中,它会打开 qlmanage,然后导致 Filemaker 冻结并崩溃。
Set Variable [ $file ; Value: ${database}::Container Field ]
Set Variable [ $path ; Value: Get ( Temporary Path ) & $file ]
Set Variable [ $script ; Value:
Let (
thepath = Middle( $path ; Position ($path ; "/" ; 1 ; 2 ); Length ($path) ;
"set p to POSIX path of " & Quote (thepath) &
"¶ do shell script \"qlmanage -p \" & quoted form of p" )
]
Export Field Contents [Database::Container Field ; "$path" ]
Perform Applescript [ $script ]
谁能给我一些关于这里可能出了什么问题的想法? 谢谢
【问题讨论】:
-
脚本看起来不错,但我会通过检查第三行之后的
$script的值并确保它看起来正确,然后通过在终端中实际执行$script代码来确认这一点.
标签: applescript filemaker osx-yosemite