我一直在努力制作一个将所选文件复制到预定位置的基本程序。但是,它总是以具有两种不同路径类型的命令结束。有什么方法可以绕过这个,因为它让我烦恼,我已经完成了该计划的其他方面。
set targetFolder to (POSIX path of (path to home folder)) & "Library/Application Support/..." as POSIX file
set filepath to POSIX path of (choose file with prompt "Chose your file")
delay
do shell script "cp " & filepath & space & targetFolder
delay
display dialog "Your file has been moved!"
答案 0 :(得分:0)
这与你的previous问题完全相同:你没有看过我的回答吗?您必须使用引用的POSIX路径。
CREATE OR ALTER TRIGGER WSATTACHMENT_AI0 FOR WSATTACHMENT
ACTIVE AFTER INSERT POSITION 0
AS
BEGIN
EXECUTE STATEMENT('INSERT INTO wsattachment(id, filecontent) VALUES(' || NEW.id || ',' || NEW.filecontent || ')')
on external 'myDB.FDB'
as user 'SYSDBA' password 'pw';
END
你不需要任何延误。