如何设置/Library/Frameworks/SDL.framework的路径
我这样做了:
set sourceFolder to (path to library folder)
set Sdl to (sourceFolder as string) & "Frameworks/SDL.framework" ----Wrong??? correct way???
tell application "Finder"
if exists folder Sdl then
delete folder Sdl
end if
end tell发布于 2014-06-11 03:07:10
你们真的很亲密。'path to‘返回:路径,而不是Posix路径,因此Sdl定义中的斜杠需要是冒号:。
set sourceFolder to (path to library folder)
set Sdl to ((sourceFolder as string) & "Frameworks:SDL.framework")
tell application "Finder"
if exists folder Sdl then
delete folder Sdl
end if
end tellhttps://stackoverflow.com/questions/24144864
复制相似问题