Re: Internet Shortcut _ Urgent :: Thanx to Rob, JJ and Jay Young
Re: Internet Shortcut _ Urgent :: Thanx to Rob, JJ and Jay Young
- Subject: Re: Internet Shortcut _ Urgent :: Thanx to Rob, JJ and Jay Young
- From: "Queen Ann" <email@hidden>
- Date: Thu, 11 Apr 2002 10:23:31 -0500
- Organization: Tata Infotech
Hi Rob, JJ and jay Young,
I read ll ur mails. Thanx a lot.
The problem was in giving the URL . It had to be in a particular format
as "[InternetShortcut]" & return & (ASCII character 10) & "URL=
http://www.hotmail.com"
Even if u hir return key after "[Internet Shortcut", the OS will not
understand that there is a line break and a form feed there. Hence
the words "return" and "(ASCII character 10)" had to be specified separately.
Wow! I am happy that the problem got solved. thanx once again,
Ann.
----- Original Message -----
From: Rob Stott
To: Queen Ann
Sent: Wednesday, April 10, 2002 10:10 AM
Subject: Re: Internet Shortcut _ Urgent
Hi there,
There's probably a cleverer way to do this, but here's how I'd go about it
(this works for me!)
tell application "Finder"
set thePathToTheDesktop to path to the desktop
set theFile to (thePathToTheDesktop & "theurl.url") as text
try
close access file theFile
end try
open for access file theFile with write permission
write "[InternetShortcut]
URL=
http://www.yahoo.com/
" to file theFile
close access file theFile
set the file type of file theFile to "LINK"
set the creator type of file theFile to "MSIE"
end tell
Good luck,
Rob
--
Rob Stott
Artwork Designer
Humbrol Ltd / Airfix
Marfleet
Kingston upon Hull
England
HU9 5NE
Tel: +44 (0) 1482 701191 ext 6691
Mobile: +44 (0) 7881 811533
Fax: +44 (0) 1482 712908
ICQ No: 148381812
"...its a small world, but I wouldn9t want to paint it."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.