• 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
Load script file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Load script file


  • Subject: Load script file
  • From: Jens Heimer <email@hidden>
  • Date: Thu, 13 Mar 2008 17:18:50 +0100
  • Thread-topic: Load script file

Title: Load script file
Hi everyone,

Is there anyone, who wants to tell me
Why this example wont work:

This one is in file main:
on run
   local obj
   set obj to (load script file "Person")
   
end run

And this one goes in file Person
property name : ""
property
alter : 0
on
setName(pName)
   set my name to pName
end setName
on setAlter(pAlter)
   set my alter to pAlter
end setAlter

on getName()
   get my name
end getName
on getAlter()
   get my alter
end getAlter


I know it is a silly question, when you did applescript for some time, but anyway, i just started
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Load script file
      • From: "Michael Schmidt (BRT)" <email@hidden>
  • Prev by Date: Re: Vexing POSIX file issue
  • Next by Date: Re: Accessing lasts characters of a string
  • Previous by thread: Re: Vexing POSIX file issue
  • Next by thread: Re: Load script file
  • Index(es):
    • Date
    • Thread