• 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: How Do I Make It Work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How Do I Make It Work


  • Subject: Re: How Do I Make It Work
  • From: "Marc K. Myers" <email@hidden>
  • Date: Sun, 11 Jan 2004 14:37:26 -0500

The lines "activate" and "connect" are outside the Internet Connect tell block. This means that the script doesn't know that the cammands are for that application and can't interpret them. Put the "end tell" that's before these lines after them and your script should work.

Marc [01/11/04 2:36:31 PM]


Date: Sun, 11 Jan 2004 20:51:39 +0800
Subject: How Do I Make It Work
From: Ezra Balaraj <email@hidden>
To: <email@hidden>

Hello,
I am an absolute newbie. I got this from another forum. I want to use it as
a start-up item. Please, how do I make it work for me? The error msg. refers
to the 3variable=connect2 not being defined. I also want it to quit after it
has done it9s work. Thank you.


property myConfig : "Built-in Ethernet"

tell application "Internet Connect"
-- get the current configuration
if name of current configuration is not equal to "Built-in Ethernet"
then
,
set configList to every configuration
set configNames to name of every configuration

repeat with i from 1 to count of configNames
if item i of configNames is equal to myConfig then
set current configuration to item i of configList
exit repeat
end if
end repeat
end if
end tell


activate
connect



tell application "Safari"
activate
-- OpenURL to some places
end tell
_______________________________________________
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.

  • Prev by Date: Re: Pipes
  • Next by Date: Re: Unvirtual ambient photon quotient
  • Previous by thread: Re: How Do I Make It Work
  • Next by thread: Unvirtual ambient photon quotient
  • Index(es):
    • Date
    • Thread