„OS Launchpad“ yra puikus ne tikpaleisti programas, bet ir palaikyti jas organizuotas. Aplankai, kuriuos sukuriate „Launchpad“, nėra tikri aplankai, sukurti aplanke „Programos“, ir tai leidžia jums dažnai naudojamas programas sugrupuoti kitaip nei įdiegtų programų sąraše. Vienintelė „Launchpad“ programų piktogramų problema yra ta, kad jas galite perkelti tik į aplanką, o ne visiškai paslėpti. Tai labai panašu į nešvarumų šlavimą po kilimėliu; programų piktogramos vis dar yra, nors ir paslėptos aplanke ir tiesiog nepastebimos. Gerai tai, kad galite pašalinti programų piktogramas iš „Launchpad“ naudodami paprastą mažą scenarijų ir nesijaudinkite, kad programa bus ištrinta iš jūsų sistemos.

Norėdami ištrinti piktogramas iš „Launchpad“, pirmiausia turite atidaryti „AppleScript“ redaktorių ir įklijuoti į jį šį scenarijų.
on open the_items my Lighten_LaunchPad(the_items) end open on Lighten_LaunchPad(the_items) repeat with the_item in the_items set the_item to the_item as alias --try tell application "Finder" set nameString to name of the_item set sost to (my get_the_name(nameString)) as string end tell display dialog "Are you sure you want to remove "" & sost & "" from the Launchpad? The app itself won"t be deleted." try set my_command to "sqlite3 ~/Library/Application\ Support/Dock/" & "*.db "DELETE from apps WHERE title=" & (quoted form of sost) & ";";osascript -e "tell application "Dock" to quit"" do shell script my_command on error the error_message number the error_number activate if the error_number is not -128 then if the error_number is 1 then set the error_text to "Error: " & the error_number & ". " & "You probably have too many old versions of the LaunchPad database file." & return & return & " To fix that, move some old ones out of ~/Library/Application Support/Dock. You can safely move any file with a name that ends with ".db" or ".db.backup" except for the most recently modified one." & return & return & "Do you want me to open that folder for you?" display dialog the error_text buttons {"Yes, please open it.", "Cancel"} default button 1 if button returned of the result is "Yes, please open it." then do shell script "open" & space & quoted form of POSIX path of (path to application support folder from user domain) & "Dock" end if error number -128 else set the error_text to "Error: " & the error_number & ". " & the error_message display dialog the error_text buttons {"Cancel"} default button 1 end if else error number -128 end if end try end repeat display dialog "All done!" buttons {"OK"} default button 1 end Lighten_LaunchPad on get_the_name(nameString) tell AppleScript set olD to text item delimiters set text item delimiters to "." set reqItem to -1 if last item of nameString = "." then set reqItem to -2 set theName to text item reqItem of nameString --try set theNameNoExt to ((text items 1 through (reqItem - 1) of nameString) as string) set text item delimiters to olD return {theNameNoExt} end tell end get_the_name on run set the_items to ((choose file) as list) Lighten_LaunchPad(the_items) end run
Tada išsaugokite scenarijų kaip programą visur, kur jums patinka. Dabar paleiskite šią programą ir atsidarys ieškos langas. Pasirinkite programą, kurią norite pašalinti iš „Launchpad“, ir patvirtinkite, kai ji paklaus, ar tikrai norite ištrinti jos piktogramą. Dabar „Dock“ bus paleistas iš naujo, o programos nebebus iš „Launchpad“. Tiesiog pakartokite tai visoms piktogramoms, kurias norite pašalinti iš „Launchpad“, ir viskas turėtų būti padaryta.
Jei norite atkurti bet kurios programos piktogramą„Launchpad“, jums nereikia pasikliauti šiuo scenarijumi (ar bet kokiu kitu įrankiu); tiesiog atidarykite programų aplanką ir nuvilkite programos piktogramą į „Launchpad“.
Perspėkite, kad pašalinus ir pridedant piktogramas patinkatai nepakeis jų „Launchpad“ aplanko struktūros. Kai pridėsite programos piktogramą, kuri prieš tai pašalinote į aplanką, ji nebus atkurta į ankstesnę vietą, ir jūs turėsite ją rankiniu būdu įmesti į pasirinktą aplanką.
Jei jums viskas gerai, jei šiuo tikslu turite įdiegti kitą programą, galbūt išbandykite „Launchpad“ valdymą.
[per „Mac OS X“ patarimai]
Komentarai