|
|
Create a list of login (startup) items' paths
Here's a simple AppleScript script that will also generate a text file (login_items.txt) on the desktop.
set paths_ to ""
tell application "System Events"
set loi to properties of login items
repeat with i in loi
set paths_ to paths_ & ("Path = " & (quoted form of path of i) & return)
end repeat
end tell
write_to_file(paths_, (path to desktop as text) & "login_items.txt", false)
to write_to_file(this_data, target_file, append_data)
try
set the target_file to the target_file as text
set the open_target_file to ¬
open for access file target_file with write permission
if append_data is false then ¬
set eof of the open_target_file to 0
write this_data to the open_target_file starting at eof
close access the open_target_file
return true
on error
try
close access file target_file
end try
return false
end try
end write_to_file
Create a list of login (startup) items' paths
Yeah and here's a one-line shell script that does the same thing: |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.07 seconds |
|