返回顶部

收藏

Mac下返回文件类型和创建者

更多
on open (fileList)
    tell application "Finder"
        set myFile to item 1 of fileList
        if kind of myFile is not "folder" then display dialog
            "file creator: " & (the creator type of (myFile as alias)) & return &
            "file type: " & (the file type of (myFile as alias))
    end tell
end open

标签:mac,文件

收藏

0人收藏

支持

0

反对

0

发表评论