0
알림 센터의 배경을 변경하여 앱을 사용하도록 앱을 만들고 싶었습니다. 누군가 제 코드에 어떤 문제가 있는지 말해주십시오.Applescript 산 사자의 알림 센터 배경을 변경하는 앱
set NCBGPath to "/System/Library/CoreServices/Notification Center/Contents/Resources/"
set NCBackground to "linen.tiff"
set themeFolder to (choose folder with prompt "Choose a Theme") as text
set themePath to themeFolder & NCBackground
set posixNCPath to NCBGPath & NCBackground
set shouldCopy to false
tell application "Finder"
if exists file themePath then set shouldCopy to true
end tell
if shouldCopy then
do shell script "cp " & quoted form of POSIX path of themePath & space & quoted form of posixNCPath with administrator privileges
-- you probably should correct the file permissions too as the copied file probably won't have the proper owner and stuff
else
display dialog "Could not find the background file in the chosen folder."
end if
는 시스템/라이브러리/CoreServices에/알림 센터/목차/리소스/존재하지 않는/말합니다 : 마지막을 변경하는 경우 성명을하면 어떻게됩니까
–