Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > "System Events".scrpt ??? HELP!

"System Events".scrpt ??? HELP!
Thread Tools
Dedicated MacNNer
Join Date: Jul 2001
Location: S.P.Q.R.
Status: Offline
Reply With Quote
Dec 30, 2004, 01:56 PM
 
I just noticed that an item named "System Events".scrpt is in my login items. What is up with that? Is this an Apple Script BY APPLE, or someone trying to hose me?

Thanks!
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Dec 31, 2004, 04:58 AM
 
You can find the location of the file to be opened by opening ~/Library/Preferences/LoginWindow.Plist

One of the items In the AutoLaunchedApplicationDictionary.

Then once you have found the script you can open it, with Script Editor, and see what it's all about.

I don't think it's a script by Apple.
     
Dedicated MacNNer
Join Date: Jul 2001
Location: S.P.Q.R.
Status: Offline
Reply With Quote
Dec 31, 2004, 11:13 AM
 
set CR to ASCII character 13
set NL to ASCII character 10

tell application "Script Editor"
tell front document
set the target_string to "--XXXX"

set the selected_text to contents of selection

if the selected_text is "" then
set the selected_text to the target_string
set the script_text to ""
set the script_text to the script_text & "tell application \"System Events\"" & CR
set the script_text to the script_text & tab & the selected_text & CR
set the script_text to the script_text & "end tell" & CR
set the replacement_string to "-- insert actions here"
else
set the script_text to ""
set the script_text to the script_text & "tell application \"System Events\"" & CR
if last character of selected_text is in {CR, NL} then
set the script_text to the script_text & tab & the selected_text
else
set the script_text to the script_text & tab & the selected_text & CR
end if
set the script_text to the script_text & "end tell" & CR
set the replacement_string to ""
end if

set contents of selection to script_text

try
check syntax
end try

my replace_and_select(target_string, replacement_string)

try
check syntax
end try
end tell
end tell

on replace_and_select(target_string, replacement_string)
tell application "Script Editor"
tell the front document
set this_text to the contents
set this_offset to the offset of the target_string in this_text
if this_offset is not 0 then
set selection to characters this_offset thru (this_offset + (length of the target_string) - 1)
set the contents of the selection to the replacement_string
else
set selection to {}
end if
end tell
end tell
end replace_and_select


wtf???
     
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
Dec 31, 2004, 02:18 PM
 
Originally posted by Diggory Laycock:
You can find the location of the file to be opened by opening ~/Library/Preferences/LoginWindow.Plist

One of the items In the AutoLaunchedApplicationDictionary.
You could also just look at the help tag that displays if you put the mouse over the login item in System Preferences.
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Dec 31, 2004, 10:19 PM
 
Looks like somehow somebody's managed to add one of the scripts from ~/Library/Scripts/Applications/Script Editor/ into your login items.

It's not malicious, and was written by Apple. It's just a script editor script that got out of place.
     
Dedicated MacNNer
Join Date: Jul 2001
Location: S.P.Q.R.
Status: Offline
Reply With Quote
Jan 2, 2005, 10:11 AM
 
Originally posted by TETENAL:
You could also just look at the help tag that displays if you put the mouse over the login item in System Preferences.
I'm really confused. When I do that it says it's located in:

/System/Library/CoreServices/SystemEvents.app

However, when I go into the finder I can't find "CoreServices". Is this a hidden file?




Originally posted by Diggory Laycock:
Looks like somehow somebody's managed to add one of the scripts from ~/Library/Scripts/Applications/Script Editor/ into your login items.It's not malicious, and was written by Apple. It's just a script editor script that got out of place.
Should I move it or le it be? Should I delete it from my Startup Items?

Thanks again!!!
     
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
Jan 2, 2005, 12:28 PM
 
Originally posted by The Wolf:
I'm really confused. When I do that it says it's located in:

/System/Library/CoreServices/SystemEvents.app

However, when I go into the finder I can't find "CoreServices". Is this a hidden file?
No, it's not hidden. It's
here.
     
Dedicated MacNNer
Join Date: Jul 2001
Location: S.P.Q.R.
Status: Offline
Reply With Quote
Jan 2, 2005, 11:59 PM
 
Originally posted by TETENAL:
No, it's not hidden. It's
here.
ahh, I was looking in the HD>Library etc... thanks!
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Jan 3, 2005, 07:03 AM
 
Originally posted by The Wolf:
ahh, I was looking in the HD>Library etc... thanks!
Why were you doing that, when the path started with /System?
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Jan 3, 2005, 03:17 PM
 
Originally posted by The Wolf:


Should I move it or le it be? Should I delete it from my Startup Items?
remove it from the startup items.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:53 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2