Auto opening data files on boot..?

Thrash911

macrumors 6502
Original poster
Sep 14, 2006
288
1
Randers, DK
Hey there..

Is it somehow possible to start up a data file automatically, when booting up? Like a text file, fx.. I can only get applications to start up..
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
5
One way is to create an AppleScript that launches your file. Go to Script Editor, make a new document with this code (putting in the path of your file):

Code:
on run
	do shell script "open '/Users/you/Documents/somefile.txt'"
end run
Then Save As > application bundle, and then add the final script to your login items.
 

Thrash911

macrumors 6502
Original poster
Sep 14, 2006
288
1
Randers, DK
Thanks a lot you guys!

The script application works really well! This is a "trick" no note down for mac beginner. Although it would be easier, if you could just start up the data files directly. But, oh well.. If there is a workaround..

Have a good day. ;)
 

Thrash911

macrumors 6502
Original poster
Sep 14, 2006
288
1
Randers, DK
WTF..?!?!?! :eek: :eek: :eek: :eek:

You can just do it with data files! Um.. Explanation required.. I have used OSX in just about 14 days. I got used to start up applications on boot, by dragging them down to the dock.. That can not work with data files. But you can just add data files in Login Items directly..!!

Jesus christ, thank you mad jew!! :) :)
 

mad jew

Moderator emeritus
Apr 3, 2004
32,191
5
Adelaide, Australia
Thrash911 said:
You can just do it with data files! Um.. Explanation required.

In System preferences, go to the Accounts pane and then select Login Items from the top bar of the app. There's a box with a small list of things (it'll just have iTunesHelper by default). At the bottom of this box is a plus sign. Click on this sign and add whatever app or file you want to add. :)
 

Thrash911

macrumors 6502
Original poster
Sep 14, 2006
288
1
Randers, DK
Oh, thanks for the explanation, but I didn't need that. I wasn't too clear before, so you misunderstood me. I'm sorry. I meant that I (me) had some explaining to do, because I felt I should've tried to do what you explained.. Yes, that was deep.. :D :D I guess I just assumed (like kainjow :)) that it wasn't possible..
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.