Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Write variables and values to another script

 
   Mac (Home) -> Apple Scripts RSS
Next:  File format of script editor  
Author Message
Jo_y

External


Since: Jun 22, 2008
Posts: 27



(Msg. 1) Posted: Sat Nov 29, 2008 12:31 am
Post subject: Write variables and values to another script
Archived from groups: alt>comp>lang>applescript (more info?)

Hi,
how can i write a text like: (set dida to display dialog x) into
another script without opening this ?
(this "special" script has to store only a list of variables and his
respective value)
Of course, by writing a script which asks me what i want to write into
the other script. (this script will be saved in the contextual menu,
and the "library script" in a subfolder of the same path)

-the first script should be able to write / read from the library
script
-the library script acts only as library for the output of the first
one

i'll explain: i want to insert often used strings in "Script Editor",
like "display dialog x, tell application x to quit, move selection to
choose folder", -only to quote my absolute first functional
applescript -snippets ect. ( i'm sick to seach my common template -
scripts via contextual menu).
This helper -script aids me to get more faster in writing scripts (and
so forth), writing text for me, while i type in only 3 letters. (one
variable of the library script)

(I think that there are no problems by adding new entries to this
"special" script, without losing the old data)

My only question is how can i write variables and values in another
script ?
Back to top
Login to vote
J. Stewart

External


Since: Oct 05, 2006
Posts: 19



(Msg. 2) Posted: Sat Nov 29, 2008 4:34 am
Post subject: Re: Write variables and values to another script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2008-11-29 03:31:34 -0500, Jo_y <jo_y.DeleteThis@operamail.com> said:

> Hi,
> how can i write a text like: (set dida to display dialog x) into
> another script without opening this ?
> (this "special" script has to store only a list of variables and his
> respective value)
> Of course, by writing a script which asks me what i want to write into
> the other script. (this script will be saved in the contextual menu,
> and the "library script" in a subfolder of the same path)
>
> -the first script should be able to write / read from the library
> script
> -the library script acts only as library for the output of the first
> one
>
> i'll explain: i want to insert often used strings in "Script Editor",
> like "display dialog x, tell application x to quit, move selection to
> choose folder", -only to quote my absolute first functional
> applescript -snippets ect. ( i'm sick to seach my common template -
> scripts via contextual menu).
> This helper -script aids me to get more faster in writing scripts (and
> so forth), writing text for me, while i type in only 3 letters. (one
> variable of the library script)
>
> (I think that there are no problems by adding new entries to this
> "special" script, without losing the old data)
>
> My only question is how can i write variables and values in another
> script ?

While you can store script data (variable values) using either shell
scripting's "defaults" command, "load script" & "store script" or just
the plain read/write commands from standard additions.osax, what you
are asking to do isn't really practical.

Take a look here and see if this would work for you:
<http://ettoresoftware.com/EttoreSoftware/About_TypeIt4Me.html>
--
Use ROT 13 on email address for replies to sender
Back to top
Login to vote
Sander Tekelenburg

External


Since: Aug 24, 2005
Posts: 120



(Msg. 3) Posted: Sat Nov 29, 2008 7:59 pm
Post subject: Re: Write variables and values to another script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
<afd6f936-0700-4660-b3f1-1b71ee64d889.TakeThisOut@j39g2000yqn.googlegroups.com>,
Jo_y <jo_y.TakeThisOut@operamail.com> wrote:

[...]

> i'll explain: i want to insert often used strings in "Script Editor",
> like "display dialog x, tell application x to quit, move selection to
> choose folder", -only to quote my absolute first functional
> applescript -snippets ect. ( i'm sick to seach my common template -
> scripts via contextual menu).
> This helper -script aids me to get more faster in writing scripts (and
> so forth), writing text for me, while i type in only 3 letters.

Script Editor already has this built-in (assuming you have its Script
Assistant enabled). Type a few characters, hit Esc, arrow through the
provided options, hit Return on the one you want. If only one option is
found, it will be filled in immediately after hitting Esc.

SE 2.1.2 (Tiger) doesn't seem to recognize everything though. Perhaps
this is improved in Leopard.

--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>

Mac user: "Macs only have 40 viruses, tops!"
PC user: "SEE! Not even the virus writers support Macs!"
Back to top
Login to vote
Jo_y

External


Since: Jun 22, 2008
Posts: 27



(Msg. 4) Posted: Mon Dec 01, 2008 7:21 am
Post subject: Re: Write variables and values to another script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> While you can store script data (variable values) using either shell
> scripting's "defaults" command, "load script" & "store script" or just
> the plain read/write commands from standard additions.osax, what you
> are asking to do isn't really practical.

Thanks for the compass, i've done much more with applescript as with
3party solutions. I like it to be creativ.
Back to top
Login to vote
J. Stewart

External


Since: Oct 05, 2006
Posts: 19



(Msg. 5) Posted: Mon Dec 01, 2008 5:03 pm
Post subject: Re: Write variables and values to another script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2008-12-01 10:21:38 -0500, Jo_y <jo_y RemoveThis @operamail.com> said:

>
>> While you can store script data (variable values) using either shell
>> scripting's "defaults" command, "load script" & "store script" or just
>> the plain read/write commands from standard additions.osax, what you
>> are asking to do isn't really practical.
>
> Thanks for the compass, i've done much more with applescript as with
> 3party solutions. I like it to be creativ.

I should have said this isn't too practical depending on the script
editor you have. With Script Debugger 4.5 it's fairly easy, Script
Editor isn't too practical but it can be done, Smile I can't comment on
as I don't use it. However, TypeIt4Me makes it workable regardless of
the editor used and is also useful with a lot of other programs too.
--
Use ROT 13 on email address for replies to sender
Back to top
Login to vote
Display posts from previous:   
Related Topics:
run shell script from applescript with multiple variables - Hi Guys, I've written a shell script that takes several vars; $1 $2 $3 $4 etc... The first variable is a folderpath. The rest is just text strings. When I run it in terminal it looks like this: ../scrptname.ksh "/folder/path/to/folder/" &quo...

Installer/Write a Folder Location to a File... only garbag.. - Hi everyone, this issue is driving me absolutely nuts and I was wondering if anyone can help me out. I'm trying to write an applescript to install a product we're creating. The issue is, the product breaks with the new Flash 9 player, so we have to..

Help with script, please - Here is the script: tell application "Mail" set foo to the selection set foo to item 1 of foo set address_ to address of item 1 of to recipient of foo if not (name of item 1 of to recipient of foo exists) then set AppleScript...

Why this script doesn't work ? - The script: tell application "Finder" activate repeat set w to display dialog "salary?" default answer "2000" set wSal to text returned of w display dialog wSa...

Help with System Preferences script - From an obvious novice: I'd like to have a script for my wife that will 1.open the display preferences and 2.select a certain screen resolution and colors ( i.e. 256/thousands/millions). I can get as far as opening the preferences pane but I can't....
       Mac (Home) -> Apple Scripts All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact