- - एक स्क्रिप्ट के साथ ओएस एक्स लॉन्चपैड से ऐप आइकन कैसे छिपाएं

एक स्क्रिप्ट के साथ ओएस एक्स लॉन्चपैड से ऐप आइकन कैसे छिपाएं

ओएस एक्स में लॉन्चपैड न केवल के लिए बहुत अच्छा हैएप्लिकेशन लॉन्च करना, लेकिन उन्हें व्यवस्थित रखने के लिए भी। लॉन्चपैड में आपके द्वारा बनाए गए फ़ोल्डर एप्लिकेशन फ़ोल्डर में बनाए गए वास्तविक फ़ोल्डर नहीं हैं, और यह आपको उन ऐप्स को रखने की अनुमति देता है, जिन्हें आप अक्सर इंस्टॉल किए गए ऐप्स की सूची से अलग-अलग उपयोग करते हैं। लॉन्चपैड में ऐप आइकन के साथ एकमात्र समस्या यह है कि आप उन्हें केवल एक फ़ोल्डर में स्थानांतरित कर सकते हैं, और उन्हें पूरी तरह से छिपा नहीं सकते हैं। यह गलीचा के नीचे व्यापक गंदगी की तरह है; एप्लिकेशन आइकन अभी भी वहां हैं, हालांकि एक फ़ोल्डर में छिपा हुआ है और सिर्फ दृष्टि से बाहर है। अच्छी बात यह है कि आप लॉन्चपैड से एक साधारण छोटी स्क्रिप्ट के साथ ऐप आइकन हटा सकते हैं, और अपने सिस्टम से ऐप हटाए जाने के बारे में चिंता न करें।

मैक-लॉन्चपैड

लॉन्चपैड से आइकन हटाने के लिए, आपको सबसे पहले AppleScript एडिटर को खोलना होगा और उसमें निम्न स्क्रिप्ट पेस्ट करनी होगी।

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

इसके बाद, स्क्रिप्ट को एक ऐप के रूप में कहीं भी सेव करें। अब इस ऐप को लॉन्च करें और फाइंडर विंडो खुलेगी। लॉन्चपैड से आप जिस ऐप को हटाना चाहते हैं, उसे चुनें और जब आपसे यह पूछा जाए कि क्या आप वाकई उसका आइकन हटाना चाहते हैं, तो पुष्टि करें। डॉक अब पुनः आरंभ होगा, और ऐप लॉन्चपैड से चला जाएगा। बस इसे उन सभी आइकन के लिए दोहराएं, जिन्हें आप लॉन्चपैड से हटाना चाहते हैं, और आपको किया जाना चाहिए।

यदि आप किसी भी ऐप के आइकन को पुनर्स्थापित करना चाहते हैंलॉन्चपैड, आपको इस स्क्रिप्ट (या उस मामले के लिए किसी अन्य उपकरण) पर भरोसा करने की आवश्यकता नहीं है; बस अपने एप्लिकेशन फ़ोल्डर खोलें और लॉन्चपैड पर एप्लिकेशन के आइकन को खींचें और छोड़ें।

चेतावनी दी जाती है कि आइकनों को हटाना और जोड़ना जैसेयह लॉन्चपैड में उनके फ़ोल्डर की संरचना को बरकरार नहीं रखेगा। जब आप एक ऐप आइकन को वापस जोड़ते हैं, जिसे पहले एक फ़ोल्डर में सॉर्ट किया गया था, जब आप इसे हटाते हैं, तो यह अपनी पुरानी स्थिति में वापस नहीं आएगा और आपको इसे फिर से अपनी पसंद के फ़ोल्डर में मैन्युअल रूप से छोड़ना होगा।

यदि आप इस उद्देश्य के लिए कोई अन्य एप्लिकेशन इंस्टॉल करने के साथ ठीक हैं, तो आप लॉन्चपैड-कंट्रोल आज़माना चाहते हैं।

[के जरिए मैक ओएस एक्स संकेत]

टिप्पणियाँ