>>179
一番楽なのはAppleScript

tell application "Xcode"
tell front document
do shell script "touch " & (quoted form of (path as string))
end tell
end tell