RE: Copying information to create a script
RE: Copying information to create a script
- Subject: RE: Copying information to create a script
- From: "Francois Houle" <email@hidden>
- Date: Tue, 10 May 2005 10:35:57 -0400
- Thread-topic: Copying information to create a script
Well I do know that... I should have specified that I am looking at the Script Editor Dictionary and dointg this:
tell application "Script Editor"
save "my tell statement" as "application" in "filename" run only
end tell
A few questions arose form this...
How should I set the reference I want to save... If I try to simply include my tell statement I want to save within brackets I get "Expected end of line but found indentifier"... Thats the main issue.
I would also like to know how I should exactly indicate the "in" section so it saves to a specific location of my choosing, eg in the ~/Library/Scripts folder (for which I would love to get suggestions as to the best way to check for its existence and create it if it doesn't exist)
Thanks to everyone for all the help !
Frank
-----Original Message-----
From: applescript-users-bounces+francois.houle=email@hidden [mailto:applescript-users-bounces+francois.houle=email@hidden] On Behalf Of John C. Welch
Sent: Monday, May 09, 2005 5:22 PM
To: AppleScript User's List
Subject: Re: Copying information to create a script
On 5/9/05 15:32, "Francois Houle" <email@hidden> wrote:
> I have a script that I am creating where part of it is to have the
> user connect to a share using:
>
> tell application "Finder"
> try
> mount volume "afp://...
> end try
> end tell
>
> What I would like to do is, once the user has successfully connected
> to it, to copy that whole "tell" statement and save it as an AS
> application so the suer has access to it later. My "mount volume
> "afp://"" does conatin variables that the user fills in, and have no
> problem with that... I only need to know how I can save that "text"
> once the user has filled in the variablesas an AS application.
Check out Script Editor's dictionary ;-)
--
³Opportunity is missed by most people because it is dressed in overalls and looks like work"
C.f. Edison
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden