Mac 的自动操作,可以共享一波吗?
最近发现自动操作这个神器,比如复制文件夹的路径,右键创建文件 可以共享一下大家的自动操作吗? #工作效率 #Mac
最近发现自动操作这个神器,比如复制文件夹的路径,右键创建文件 可以共享一下大家的自动操作吗? #工作效率 #Mac
do not Lock Screen 远程公司摸鱼的
on run {input, parameters}
set theOutput to {}
tell application “Microsoft Word”
launch
repeat with thefile in input
open thefile
set pdfPath to my makeNewPath(thefile)
set theActiveDoc to the active document
save as theActiveDoc file format format PDF file name pdfPath
close theActiveDoc saving no
end repeat
quit
end tell
return theOutput
end run
on makeNewPath(f)
set d to f as string
if d ends with “.docx” then
return (text 1 thru -5 of d) & “pdf”
else if d ends with “.doc” then
return (text 1 thru -4 of d) & “pdf”
else
return d & “.pdf”
end if
end makeNewPath
3. 之前还曾经用 automator 来做一个 quit all app (仅保留想保留的) 后来用 alfred 的一个 workflow 代替了
4. word -> PDF 5 有给这个方案.
显示(/隐藏)所有隐藏文件
STATUS=`defaults read com.apple.finder AppleShowAllFiles`
if [ $STATUS == YES ]
then
defaults write com.apple.finder AppleShowAllFiles NO
else
defaults write com.apple.finder AppleShowAllFiles YES
fi
killall Finder