• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Internet Shortcut _ Urgent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internet Shortcut _ Urgent


  • Subject: Re: Internet Shortcut _ Urgent
  • From: Jay Young <email@hidden>
  • Date: Wed, 10 Apr 2002 18:25:36 -0500

Hi Queen Ann,

As JJ said earlier:

-----------------------------------
You must write to the file anything such as:

[InternetShortcut]URL=http://www.google.com/

JJ
----------------------------------

We've got to get this into the file you're creating. But I found that
Microsoft has included a character of ASCII 10 after the first return.
So when you write to the file you'll need to include that character. I
tested this with IE 5.0 running in classic mode in 10.1.3. See if this
works for you:

-------------------------------------------------------------------
property file_type : "LINK"

set my_url to "http://www.yahoo.com/";
tell application "Finder"
activate
try
set the_url_file_path to choose file name
set the_url_file to open for access [NO BREAK]
the_url_file_path with write permission
set eof of the_url_file to 0
write "[InternetShortcut]" & (ASCII character 13) & [NO BREAK]
(ASCII character 10) & "URL=" & my_url to the_url_file
close access the_url_file
set creator type of the_url_file_path to "MSIE"
set file type of the_url_file_path to file_type
on error errTxt number errNum
if errNum * -128 then close access the_url_file
end try
end tell

-------------------------------------------------------------------

Hope it helps!

Jay

On Wednesday, April 10, 2002, at 06:24 PM, Queen Ann wrote:

> Hi,
> Thanx for ur response.
> But its not jus that I want IE to open a web page.
> I specifically want to create shortcut. I mean the file of type URL.
>
> That is, I want an application which will create a shortcut file on the
> desktop.
> Normally, we get the shortcut file by dragging the location icon in the
> address bar of IE.
> I want this to be done programatically ( usng applescript)
>
> Hope I have made myself clear now.
> Cud u help?
>
> Ann
>
>
> ----- Original Message -----
> From: Gnarlodious
> To: Queen Ann ; email@hidden
> Sent: Wednesday, April 10, 2002 7:51 AM
> Subject: Re: Internet Shortcut _ Urgent
>
>
> Entity Queen Ann spoke thus:
>
>> How do I make a script which will create an Internet Shortcut of
>> Internet
>> Explorer in my desktop?
> What's wrong with this?
>
> tell application "Internet Explorer" to OpenURL [OPT Return]
> "http://www.Spectrumology.com/";
>
> Hope that makes sense...
>
> Rachel http://www.gnarlodious.com
> _______________________________________________
> 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.
_______________________________________________
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.

References: 
 >Re: Internet Shortcut _ Urgent (From: "Queen Ann" <email@hidden>)

  • Prev by Date: Re: Finder Version Wrong in OS X
  • Next by Date: Re: Monitoring application in background
  • Previous by thread: Scripting to put a "Drag Link"on the desktop
  • Next by thread: Re: Internet Shortcut _ Urgent
  • Index(es):
    • Date
    • Thread