small question
small question
- Subject: small question
- From: "Wenlock, Mick" <email@hidden>
- Date: Thu, 6 May 2004 14:14:30 -0600
- Thread-topic: applescript-users digest, Vol 3 #2660 - 3 msgs
Hi again everyone - same old me - new job!
Someone asked me this morning about the print window command disappearing in OS X and that seems to be the case but I was wondering if it would be possible to make a smallutility that may be able to do the same thing? Anyone wanna volunteer to point me in the right direction?
TIA!!
Mick
-----Original Message-----
From: email@hidden
[
mailto:email@hidden]On Behalf Of
email@hidden
Sent: Wednesday, May 05, 2004 11:00 PM
To: email@hidden
Subject: applescript-users digest, Vol 3 #2660 - 3 msgs
Send applescript-users mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://www.lists.apple.com/mailman/listinfo/applescript-users
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of applescript-users digest..."
Today's Topics:
1. Re: PhotoShop- Set Selection Size (Shane Stanley)
2. Re: How to save some settings (Joseph Weaks)
3. Re: How to save some settings (Walter Ian Kaye)
--__--__--
Message: 1
From: Shane Stanley <email@hidden>
Subject: Re: PhotoShop- Set Selection Size
Date: Wed, 5 May 2004 20:01:31 -0700
To: AS user list <email@hidden>
On May 4, 2004, at 6:55 AM, Marconi wrote:
>
All I want to do is, with the front document window, set the exact
>
selection size to, say, 1024x768.
>
>
What's the syntax to do that?
tell application "Adobe Photoshop CS"
tell current document
select region {{0,0}, {1024,0}, {1024,768}, {0, 768}} combination
type replaced feather amount 10 without antialiasing
end tell
end tell
--
Shane Stanley <email@hidden>
--__--__--
Message: 2
Cc: AppleScript Users <email@hidden>
From: Joseph Weaks <email@hidden>
Subject: Re: How to save some settings
Date: Wed, 5 May 2004 22:38:16 -0500
To: Andre Vink <email@hidden>
On May 5, 2004, at 3:30 PM, Andre Vink wrote:
>
How can I save some content of a variables AND use this when I start
>
the script later.
>
>
I've set a variable to 1, the user change the variable to 2.
>
The next time the script is started the variable is set by default to
>
1.
>
This is not what I want! I would use the content of the variable that
>
was set by the user?
>
Is this posible?
If you define the variables as "properties" then the values will be
stored within the script, AS LONG AS YOU DON"T RECOMPILE THE SCRIPT.
Try this out, saved as a script:
property myVariable : 1
if myVariable is 2 then display dialog "Buckle my shoe"
set myVariable to text returned of (display dialog "Change the variable
if you like" default answer myVariable) as number
--__--__--
Message: 3
Date: Wed, 5 May 2004 21:49:37 -0700
To: email@hidden
From: Walter Ian Kaye <email@hidden>
Subject: Re: How to save some settings
At 10:38p -0500 05/05/2004, Joseph Weaks didst inscribe upon an
electronic papyrus:
>
On May 5, 2004, at 3:30 PM, Andre Vink wrote:
>
>How can I save some content of a variables AND use this when I
>
>start the script later.
>
>
>
>I've set a variable to 1, the user change the variable to 2.
>
>The next time the script is started the variable is set by default to 1.
>
>This is not what I want! I would use the content of the variable
>
>that was set by the user?
>
>Is this posible?
>
>
If you define the variables as "properties" then the values will be
>
stored within the script, AS LONG AS YOU DON"T RECOMPILE THE SCRIPT.
Right. If you need to supply updates to your users without trampling
their settings, you'll need to store them in a separate preferences
file. There are a variety of ways to do that, as you can imagine. :)
-boo
--__--__--
_______________________________________________
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.
End of applescript-users Digest
CONFIDENTIALITY NOTICE: The information contained in this message is legally privileged and confidential information intended for the use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any release, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the author immediately by replying to this message and delete the original message. Thank you.
_______________________________________________
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.