Looking for Script Exchange-2007: Import-Mailbox Calendar Folder on multiple mailboxes {Distribution Group}
Hi,
I'm looking for a PowerShell script which will import a Calendar events into student's mailbox (Calendar). Those students are located in a distribution group and I would like to target the distribution group; I'm trying to simulate what I want to achieve
in the below code example, I would appreciate if anyone jump in and advise.
$Users = Import-Csv C:\users.csv | ForEach-Object{Get-DistributionGroup -Identity SC-1213} | Import-Mailbox -Identity $Users -PSTFolderPath c:\Calendar.pst -IncludeFolders '\Calendar' -StartDate -EndDate
Much appreciated..
Hussain
The logic doesn't work unless you are using StartDate and EndDate for the period when you change the item. As I said above, StartDate and EndDate are not the times when the meeting starts and ends - they are the times that the item was either added
or modified in the mailbox. Your filter was trying to pull items that were in the future.
And as I also said above, if you import a modified item, the original is
not going to be updated. You will have a duplicate meeting
on the calendar. You would have to remove the original
and import the updated item if this was how you wished to manage the updates. This is not nearly as effective as
sending meeting requests and updating those meetings.
For example, if we do things the way you are doing them, and we add a "Student Appreciation Bonfire" meeting to the calendar for April 12 at "The Quad", we would do the following:
On February 1, you get information for the meeting that needs to be imported
You create this new meeting in the PST calendar - "Student Appreciation Bonfire"; Date April 12, start 8:00 AM, end 12:00 noon; Location The Quad
You import the PST into everyone's calendar
You receive a note on March 12 saying the venue has changed to The River Beach, so you update this meeting in your PST
Since there are other calendar items in the PST, you import the update using StartDate of March 12 and EndDate of March 13 - the date that you changed the item, not the date the item occurs
At this point, all users have two meetings on their calendar - the original and the update
If, instead of doing it this way, you create a Student Actvities Calendar mailbox, you would handle it this way:
On February 1, you get information for the meeting that needs to be imported
You create this new meeting in the Corporate calendar - "Student Appreciation Bonfire"; Date April 12, start 8:00 AM, end 12:00 noon; Location The Quad
You invite everyone to the meeting
You receive a note on March 12 saying the venue has changed to The River Beach, so you update this meeting in that calendar and send out the update
At this point, all users have only the one meeting on their calendar - the update
Using the PST as the source for the meetings would work only for items that
will not be changed - holidays are a good example.
Similar Messages
-
Exchange 2007, Contacts and Calendar OK , Email only folder structure
Hi, as i was reading many different topics I found that many of them had mixed answers between Exchange 2003, Exchange 2003 and 2007. Because of this mess, i wanted to focus ONLY on *EXCHANGE 2007*. That´s been said...
I have configured my iPhone with the user/pass/domain/address/SSL-ON, the iPhone connects to exchange and syncronize correctly Contacts and Calendar but not the Email. Email just shows folder structure.
After this first failed attempt I installed the certificate (Unsigned according to iphone and contains "Root Certificate")... No Improvement
I contacted my IT department , they said that Activesync was supposedly ON in my user profile and that SSL was mandatory. They also said that they cannot start testing thoroughly because it would disroupt other users. They also argue that many users are using activesync service with no problem what-so-ever. However they incouraged me to keep looking for an answer.
I couldnt find an apple guide to configuration for Exchange 2007, the enterprise deployment guide is just to vague.
_This info comes from "About" in OWA_
+Mailbox Owner: Juan I*** ****** [**@*****.net]+
+User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1+
+OWA Experience: Basic+
+User Language: English (United States)+
+User Timezone: (GMT-03:00) Buenos Aires, Georgetown+
+Exchange Mailbox Address: /o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=*+
+OWA Host Address: http://webmail.*****.net/owa+
+OWA Version: 8.0.605.16+
+Exchange Client Access Server .NET Framework Version: 2.0.50727.1433+
+Exchange Client Access Server OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2+
+Exchange Client Access Server Version: 8.0.605.0+
+Exchange Client Access Server Language: en-US+
+Exchange Client Access Server Timezone: Hora estándar romance+
+Exchange Client Access Server Flavor: 32bit+
+Mailbox Server Name: exchange.*****.***+
+Mailbox Server Exchange Version: 8.0.605.0+
+Other roles currently installed on CAS server: Mailbox, Hub Transport+
+Authentication type associated with this OWA session: Basic+
+Public logon: Yes+
*Does anyone have a Check-List for Microsoft Exchange 2007?*
Please forgive my lousy English.
Message was edited by: NachiargI don't think there will be a solution to this. Exchange 2003 just isn't supported.
-
I am looking for assistence how to import an existing website in Dreamweaver CS4
I need help to import an existing website in Dreamweaver CS4
Only have one Dreamweaver CS4 installed, trying to get my DW CS4 disk I
bought installed on computer (done) I only need to figure out how to link
my website to the DW CS4 on my second computer.
L. Francesca Ferrari, L.Ac., DTCM, DMQ (China)
Ferrari Center of Chinese Medicine
222 Forest Avenue
Pacific Grove, CA 93950
831.818.3993
www.francescaferrari.com
L. Francesca Ferrari, L.Ac., DMQ (China)
Department Chair Medical Qigong Science
Five Branches University
This message, together with any attachments, is intended only for the use of
the individual or entity to which it is addressed and may contain
information that is confidential and prohibited from disclosure. If you are
not the intended recipient, you are hereby notified that any dissemination,
or copying of this message, or any attachment, is strictly prohibited. If
you have received this message in error, please notify the original sender
immediately by telephone or by return e-mail and delete this message, along
with any attachments, from your computer.
From: "Nancy O." <[email protected]>
Reply-To: <[email protected]>
Date: Sat, 04 Sep 2010 18:34:03 -0600
To: Francesca Ferrari <[email protected]>
Subject: i am looking for assistence how to import an existing
website in Dreamweaver CS4
>> I do not know where the site files are. They are on my initial Mac laptop
>> computer, and I use Hostway as my server.
Do you mean you lost your local copy of your site files from on an old
computer?
Log-in to your Remote Server and GET the site files using DW or your favorite
FTP application (Cute, Filezilla, WS_ftp, etc....)
>> But I was distinctly told my the call yesterday with Adobe that I must have
>> CS5 to get my website, www.francescaferrari.com with Dreamweaver on my
>> second computer.
Which version of DW did you have before?
How many installations of DW did you have? You can have up to 2 at a time.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
> -
Problem with my program looking for the settings file in the wrong folder
I have been writing a simple FTP file uploader, what I want to do is be able to select the files I want to upload in windows explorer and then right click and click the menu item and it launches the program and passes the files paths that I have selected to it.
So I use this in the windows registry "C:\Program Files\Java\jre1.6.0_03\bin\java.exe -jar D:\BenFTP\BenFTP.jar %1"
It launches fine and has no problem finding the files I want to upload. The problem is that it tries to look for the settings file in the same folder that the file I am try to upload is in. Which it's not suppose to do since the settings file is in the same folder that the .jar is in.
Edited by: ColNewman on Feb 5, 2008 6:55 PMSo, you're looking for your settings file in your current working directory. There's no way to set the CWD in your registry entry (is there?) so that isn't a practical thing to do. Presumably you're using a File object or a FileReader or something? Can't do that.
One alternative is to look for the settings file in the classpath. You can get a URL to a file in the classpath like this:URL settings = this.getClass().getResource("/settings.xml");Or you can get an InputStream to read the file by using the getResourceAsStream method. You would have to make sure that your executable jar file contained a Class-Path entry that specified the right directory, because the directory the jar is contained in isn't automatically in an executable jar's classpath.
Another alternative is to ask the user where the settings file is supposed to be, and put an entry in the Preferences (java.util.prefs) to remember that location. -
I am looking for a specific photo in my event folder, it does not show up, yet when I use the search feature the picture is there. Why doesn't it show up in the folder?
What system and iPhoto version are you running?
If your're using iPhoto 9 or later Command (right) - click on the photo in the search window and select Show Event in the Contextual menu.
That will take you to the event where the photo is.
OT -
Outlook 2013 Constantly Prompting For Credentials - Exchange 2007 - Small Business Server 2008
Hello, I am having a problem using Windows Small Business Server 2008 and Exchange 2007 with Outlook 2013. The issue is that a credentials box appears in Outlook 2013 when using there exchange account whilst connected to the domain. The box will randomly
prompt for user credentials, once the user credentials are entered it will either pop back up again and if you enter the details in again it will continue to pop up for around 4 or 5 times before accepting the credentials. It will then pop back up within 15
minutes and do the same thing, if you click "Cancel" on the box it will also go away and remain connected to exchange however a popup in the bottom right will appear asking for a password even though you can send / receive from the mailbox.
I have looked into this issue for hours and hours and still can not find a resolution, I have tried re-installing Office 2013 and re-creating the Outlook Profile as-well as as the Windows 7 Profile. I have checked through all the SSL certificates in IIS
and everything appear to be correct.
Is this a common issue? Is there anything I can do to further diagnose or fix this issue without having to try to re-install both the server and machine?Hi James_wilson,
Any update?
Just additional, would you please let me know whether have installed all updates for Outlook 2013? If hasn’t, please install and then monitor the result.
Please also check if you enable
Always prompt for logon credentials setting in Outlook 2013.
If you enable this setting, please uncheck and check if this issue still persists. Meanwhile, please remove the old credential in
Credential Manager, then add again. Then monitor the result
By the way, please run the Exchange BPA on the SBS 2008 server and check if can find some issue.
Hope this helps.
Best regards,
Justin Gu -
I am looking for a convenient way to synchronize my calendars between my email account and Microsoft Outlook to my gmail account and Iphone 4s
you are asking about Microsoft products and using a laptop, not a workstation Mac Pro.
The Numbers and Pages Apple Communities. or MS Community if you want those.
Importing and Exporting, but Numbers and Pages will not do a SAVE into other formats by default, and therefore have to keep using Export which is messy.
Changing your own thread midstream may not be ['thread hijack'] but it is like having the rug pulled out by changing the subject on us. -
Exchange 2007 Active Sync Issue with 1 users mailbox
Good Afternoon,
Server OS: Small Business Server 2008
Exchange: 2007 Standard - Update Rollup 13 SP3
Mobile phone: Blackberry Z10
We are in the process of decommissioning our Blackberry Enterprise Server, and down to one user. I am able to setup Exchange on his new non BES server tied phone, but it will not sync any email, all Meetings, and only some contacts. I have tried
adding this account to an Android phone with the same results. I have numerous times went into EMC and delete the Mobile device, when re-adding the account, everything seems to point to his exchange account being the culprit. I am getting the below
Active Sync error after adding his account. I have Bing / Googled around, and nothing of substance I have found. Thank you in advance!
Log Name: Application
Source: MSExchange ActiveSync
Date: 3/24/2015 2:01:15 PM
Event ID: 1008
Task Category: Requests
Level: Warning
Keywords: Classic
User: N/A
Computer: SISBS.internaldomain.local
Description:
An exception occurred and was handled by Exchange ActiveSync. This may have been caused by an outdated or corrupted Exchange ActiveSync device partnership. This can occur if a user tries to modify the same item from multiple computers. If this is the case,
Exchange ActiveSync will re-create the partnership with the device. Items will be updated at the next synchronization.
URL=/Microsoft-Server-ActiveSync/default.eas?Cmd=FolderSync&DeviceType=BlackBerry&User=bbevers&DeviceId=BB3359D356
--- Exception start ---
Exception type: Microsoft.Exchange.AirSync.AirSyncPermanentException
Exception message:
Exception level: 0
HttpStatusCode: 200
AirSyncStatusCode: 6
XmlResponse:
<?xml version="1.0" encoding="utf-8" ?>
<FolderSync xmlns="FolderHierarchy:">
<Status>6</Status>
</FolderSync>
Exception stack trace: at Microsoft.Exchange.AirSync.FolderCommand.Execute()
at Microsoft.Exchange.AirSync.Command.WorkerThread()
Inner exception follows...
Exception type: Microsoft.Exchange.Data.Storage.FolderSaveException
Exception message: Unable to save sync state folder Root due to PartiallySucceeded, Property = [0x7c020102] SyncCustomState, PropertyErrorCode = MapiCallFailed, PropertyErrorCode = Properties could not be set.
Exception = Microsoft.Exchange.Data.Storage.AccessDeniedException: Cannot set properties. ---> Microsoft.Mapi.MapiExceptionNoAccess: MapiExceptionNoAccess: Unable to set properties on object. (hr=0x80070005, ec=-2147024891)
Diagnostic context:
Lid: 18969 EcDoRpcExt2 called [length=7783]
Lid: 27161 EcDoRpcExt2 returned [ec=0x0][length=88][latency=0]
Lid: 23226 --- ROP Parse Start ---
Lid: 27962 ROP: ropSetProps [10]
Lid: 17082 ROP Error: 0x80070005
Lid: 30561
Lid: 21921 StoreEc: 0x80070005
Lid: 27962 ROP: ropExtendedError [250]
Lid: 1494 ---- Remote Context Beg ----
Lid: 26426 ROP: ropSetProps [10]
Lid: 4559 StoreEc: 0x80070005
Lid: 1750 ---- Remote Context End ----
Lid: 26849
Lid: 21817 ROP Failure: 0x80070005
Lid: 25761
Lid: 1940 StoreEc: 0x80070005
Lid: 25297
Lid: 21201 StoreEc: 0x80070005
at Microsoft.Mapi.MapiExceptionHelper.ThrowIfError(String message, Int32 hresult, Object objLastErrorInfo)
at Microsoft.Mapi.MapiProp.SetProps(PropValue[] pva)
at Microsoft.Exchange.Data.Storage.MapiPropertyBag.<SetProperties>b__3(PropValue[] propValues)
at Microsoft.Exchange.Data.Storage.MapiPropertyBag.InternalSetProperties(PropertyDefinition[] propertyDefinitions, Object[] propertyValues, MapiSetProps mapiSetProps)
--- End of inner exception stack trace ---
at Microsoft.Exchange.Data.Storage.MapiPropertyBag.InternalSetProperties(PropertyDefinition[] propertyDefinitions, Object[] propertyValues, MapiSetProps mapiSetProps)
at Microsoft.Exchange.Data.Storage.StoreObjectPropertyBag.FlushSetProperties()
at Microsoft.Exchange.Data.Storage.FolderPropertyBag.SaveFolderPropertyBag(Boolean needVersionCheck)..
Exception level: 1
Exception stack trace: at Microsoft.Exchange.Data.Storage.FolderSaveResult.ToException(String exceptionMessage)
at Microsoft.Exchange.Data.Storage.SyncState.Commit(PropertyDefinition[] properties, Object[] values, Int32[] sizes)
at Microsoft.Exchange.AirSync.FolderCommand.Execute()
--- Exception end ---.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MSExchange ActiveSync" />
<EventID Qualifiers="32772">1008</EventID>
<Level>3</Level>
<Task>1</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-03-24T19:01:15.000Z" />
<EventRecordID>4756229</EventRecordID>
<Channel>Application</Channel>
<Computer>SISBS.internaldomain.local</Computer>
<Security />
</System>
<EventData>
<Data>/Microsoft-Server-ActiveSync/default.eas?Cmd=FolderSync&DeviceType=BlackBerry&User=bbevers&DeviceId=BB3359D356</Data>
<Data>--- Exception start ---
Exception type: Microsoft.Exchange.AirSync.AirSyncPermanentException
Exception message:
Exception level: 0
HttpStatusCode: 200
AirSyncStatusCode: 6
XmlResponse:
<?xml version="1.0" encoding="utf-8" ?>
<FolderSync xmlns="FolderHierarchy:">
<Status>6</Status>
</FolderSync>
Exception stack trace: at Microsoft.Exchange.AirSync.FolderCommand.Execute()
at Microsoft.Exchange.AirSync.Command.WorkerThread()
Inner exception follows...
Exception type: Microsoft.Exchange.Data.Storage.FolderSaveException
Exception message: Unable to save sync state folder Root due to PartiallySucceeded, Property = [0x7c020102] SyncCustomState, PropertyErrorCode = MapiCallFailed, PropertyErrorCode = Properties could not be set.
Exception = Microsoft.Exchange.Data.Storage.AccessDeniedException: Cannot set properties. ---> Microsoft.Mapi.MapiExceptionNoAccess: MapiExceptionNoAccess: Unable to set properties on object. (hr=0x80070005, ec=-2147024891)
Diagnostic context:
Lid: 18969 EcDoRpcExt2 called [length=7783]
Lid: 27161 EcDoRpcExt2 returned [ec=0x0][length=88][latency=0]
Lid: 23226 --- ROP Parse Start ---
Lid: 27962 ROP: ropSetProps [10]
Lid: 17082 ROP Error: 0x80070005
Lid: 30561
Lid: 21921 StoreEc: 0x80070005
Lid: 27962 ROP: ropExtendedError [250]
Lid: 1494 ---- Remote Context Beg ----
Lid: 26426 ROP: ropSetProps [10]
Lid: 4559 StoreEc: 0x80070005
Lid: 1750 ---- Remote Context End ----
Lid: 26849
Lid: 21817 ROP Failure: 0x80070005
Lid: 25761
Lid: 1940 StoreEc: 0x80070005
Lid: 25297
Lid: 21201 StoreEc: 0x80070005
at Microsoft.Mapi.MapiExceptionHelper.ThrowIfError(String message, Int32 hresult, Object objLastErrorInfo)
at Microsoft.Mapi.MapiProp.SetProps(PropValue[] pva)
at Microsoft.Exchange.Data.Storage.MapiPropertyBag.<SetProperties>b__3(PropValue[] propValues)
at Microsoft.Exchange.Data.Storage.MapiPropertyBag.InternalSetProperties(PropertyDefinition[] propertyDefinitions, Object[] propertyValues, MapiSetProps mapiSetProps)
--- End of inner exception stack trace ---
at Microsoft.Exchange.Data.Storage.MapiPropertyBag.InternalSetProperties(PropertyDefinition[] propertyDefinitions, Object[] propertyValues, MapiSetProps mapiSetProps)
at Microsoft.Exchange.Data.Storage.StoreObjectPropertyBag.FlushSetProperties()
at Microsoft.Exchange.Data.Storage.FolderPropertyBag.SaveFolderPropertyBag(Boolean needVersionCheck)..
Exception level: 1
Exception stack trace: at Microsoft.Exchange.Data.Storage.FolderSaveResult.ToException(String exceptionMessage)
at Microsoft.Exchange.Data.Storage.SyncState.Commit(PropertyDefinition[] properties, Object[] values, Int32[] sizes)
at Microsoft.Exchange.AirSync.FolderCommand.Execute()
--- Exception end ---</Data>
</EventData>
</Event>Hello,
Yes, it means the mailbox is corrupted. The most efficeint way is to rebuild the user's mailbox.
Thanks,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Simon Wu
TechNet Community Support -
Q10 + Exchange 2007 SP3 - random calendar entries not synching
Hi,
We have an executive user with a BB Q10 with software v10.1.0.314.
The devices connects via WiFi or 3G to our Exchange 2007 SP3 server and mail/contacts/etc all appear to be flowing normally.
However, the user has reported that some calendar appointment/meeting entries are not showing on their handset. There doesn't appear to be a pattern as to which entries don't show.
I've confirmed that the entries are available on the Exchange 2007 server in the users calendar, however they will not sync to the handset.
If I create a new appointment or meeting request, they sync both ways, whether created on the handset or via Outlook/OWA on the Exchange server.
Any thoughts on why these random appointments/meetings aren't synching?
Are there any logs I could check for errors? The obvious Exchange/Windows ones don't seem to indicate any issues.Hi robert_petbam and welcome to the BlackBerry Support Community Forums!
Are the missing appointments more than 30 days old? The BlackBerry Q10 will only show the last 30 days worth of calendar appointments.
Thanks.
-CptS
Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)! -
Looking for Scripts that Replaces Text and Master Pages (Batch Missing Files and PDFs)
I have just found the Script Library panel in FM 10. (Always used InDesign before.)
I'm up to replace a text string and two master pages in 100+ documents. Tried to google for some nice solutions to make this automatically but cannot find any scripts/macros to FM at all.
Do you have som tip where to find such scripts/macros?
To facilitate my work I also look for a batch script that automatically updates the image pathes in each framemaker file (image folder has been renamed).
And at a last FrameMaker -> PDF Batch converter.100 is a small enough number that no time may be saved writing a script (assuming none exist for the purpose).
I'd be tempted to ...
Create a sourcing file that has the new MPs needed (and safe versions of MPs "Left" and "Right")
Create a new Book file.
Add to it all 100 of the files needing update (this is the only tedious part).
Use Find/Replace from the Book menu to fix the text string.
Select all book component files:
File > Import > Formats
Import from Document [MPsourcefilename.fm]
[Deselect All]
[*] Page Layouts
[Import] -
Please help! Looking for script to insert current date on page.
I currently use a Dreamweaver Extension that lets you insert
current date and time on your web page.
The problem is, I don't know Javascript and cannot edit the
Javascript codes to "remove the time"
I only need the current date that will change every day.
Do you know where I can get this script, I goggled and got
several but I'm looking for something authentic.
Also is it possible to have your page validate when you use
Javascript embedded in your HTML?
Thanks everyone,
Patrickquote:
Originally posted by:
Newsgroup User
Webethics wrote:
> The problem is, I don't know Javascript and cannot edit
the Javascript codes
> to "remove the time"
> I only need the current date that will change every day.
JavaScript generates the date by using the clock on the
computer of each
visitor to your site. If a visitor's clock has the wrong
date, your site
will also display the wrong date.
> Do you know where I can get this script, I goggled and
got several but I'm
> looking for something authentic.
I don't know what you mean by "authentic". Date generation in
JavaScript
is one of the most basic features of the language, so if it
works, it's
"authentic".
> Also is it possible to have your page validate when you
use Javascript
> embedded in your HTML?
Yes, but you shouldn't embed JavaScript in XHTML.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
So mr. Powers are there people that use Javascript Date in
their page?
Would you recommend it?
I could use PHP but I don't know PHP,
How do I come up with the string in this format, say,
Wednesday, October 29th, 2008 that will change to a new day
according to the server time and date.
Thanks so much for your help and I have two of your books! I
will be taking PHP classes in December.
Patrick -
Exchange 2007 - 2010 Outlook doesn't autodiscover after mailbox move
We currently are in the process of migrating from Exchange 2007 to 2010. When I move a mailbox to 2010, Outlook (2010 in this case), fails to connect to the new environment. Restarting outlook does not help. I am forced to change the
servername in the mail applet. How can we make this happen automagically?That URL points to the autodiscover.xml page on the 2010 CAS servers. Returns the typical
<?xml version="1.0" encoding="utf-8"
?>
- <Autodiscover
xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
- <Response>
- <Error Time="01:46:57.9070185"
Id="814683946">
<ErrorCode>600</ErrorCode>
<Message>Invalid Request</Message>
<DebugData
/>
</Error>
</Response>
</Autodiscover> -
Looking for script to auto resize images
I have a commerce site and we have 3 sizes of images thumb
nail, standard
and fullsize. Ideally I'd like to maintain just one image
folder so I don't
have to keep synching and batch resizing.
I'm looking for a script that would resample/resize images on
the fly so I
only have to maintain one directory. Does anyone know of such
a script? It
doesn't have to be free.
Thanks.oO(robbie)
>I have a commerce site and we have 3 sizes of images
thumb nail, standard
>and fullsize. Ideally I'd like to maintain just one image
folder so I don't
>have to keep synching and batch resizing.
>
>I'm looking for a script that would resample/resize
images on the fly so I
>only have to maintain one directory. Does anyone know of
such a script? It
>doesn't have to be free.
What language? With PHP for example it's quite easy using the
GD
functions.
Another way would be to use an external software. I prefer
Paint Shop
Pro for all image-related stuff. Things like creation of
thumbnails in
different sizes can easily be automated by using its own
scripting
language (based on Python).
Micha -
Looking for script - Quarantine policy reporting
I'm looking for a way(script or CLI) to gather percentage information for Quarantine policy's and dump it to a ".csv" or ".txt" file.
What I want is to collect the percentage of quarantined messages per policy.
Thanks for your help in advance,jgarry wrote:
[This one?|http://www.petefinnigan.com/find_all_privs.sql]
That would be the one!
Thanks. -
I'm wildife biology student and I'm using Adobe Photoshop to quantify color of wild animals. I'm looking for someone who can help me to adjust a java script.
The script automatizes random point selection in an image and gives an average color of the points.
I need the script to do two more things for me:
1. Save the RGB values from the random points into a spreadsheet so I can calculate stadard error OR provide the error along with the average RGB.
2. Randomly select points in a highlighted area of the photo (now it randomly selects points in the whole image, but I need it to select just from the animal (not the background).
If you know how to add either of these to the script, please let me know.
Thank you,
Marketa ZimovaHere is another version. It puts a stroke around the selection so it is easier to see. You might want to edit the color.
And yes you can include my name in the acknowledgement section if you wish.
// script expect an open single layer document in RGB mode with a selection of the area to sample.
// the csv file is written to the desktop and the script will overwrite an existing samples.csv
main();
function main(){
if( app.documents == 0 ) {
alert("No image to process");
return;
var doc = app.activeDocument;
if( doc.mode != DocumentMode.RGB ){
alert("Image must be in RGB mode to sample");
return;
if( !hasSelection( doc ) ){
alert("Please make a selection of target animal\rbefore running script");
return;
var numberOfSamples = Number(prompt("How many selections should be made?",10));
if( numberOfSamples == NaN ) numberOfSamples = 1;
var sampleSize = Number(prompt("What size should each selection be?(NxN px)", 3));
if( sampleSize == NaN ) sampleSize = 3;
var originalLayer = doc.activeLayer;// make reference to current layer
executeAction( charIDToTypeID( "CpTL" ), undefined, DialogModes.NO );// dupe selection to new layer
var sampleLayer = doc.activeLayer;// make reference to that new layer
originalLayer.visible = false;// turn off original layer
var samples = [];// make array to hold samples
var bounds = sampleLayer.bounds;
var layerX = bounds[0].as('px');
var layerY = bounds[0].as('px');
var layerWidth = bounds[2].as('px') - bounds[0].as('px');
var layerHeight = bounds[3].as('px') - bounds[1].as('px');
// make requested number of samples
var s = 0;
while( s < numberOfSamples ){
var sX = randomRange( layerX, layerX + layerWidth );
var sY = randomRange( layerY, layerY + layerHeight );
var cs = doc.colorSamplers.add( [ new UnitValue( sX, 'px' ), new UnitValue( sY, 'px' ) ] );
var sample = getSelectionColor( 0, sampleSize );
if( undefined != sample ){
samples.push( sample );
s++;
cs.remove();
var sampleFile = new File('~/Desktop/samples.csv');
sampleFile.open('w');
sampleFile.writeln('red,green,blue');
for( var s = 0; s< samples.length;s++ ){
sampleFile.writeln( samples[s].rgb.red+','+samples[s].rgb.green+','+samples[s].rgb.blue );
sampleFile.close();
function randomRange( minVal, maxVal ){
return minVal+Math.floor(Math.random()*( maxVal-minVal ));
// Function: hasSelection
// Description: Detremines if there is a selection
// Usage: alert(hasSelection())
// Input:
// Return: true or false
// Dependencies:
function hasSelection(doc) {
var res = false;
var as = doc.activeHistoryState;
doc.selection.deselect();
if (as != doc.activeHistoryState) {
res = true;
doc.activeHistoryState = as;
return res;
// adapted from scirpt by jugenjury at adobefourms
function getSelectionColor( s, A ){
var origRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.PIXELS;
try{
if ( undefined == s ) { s=0; }
if ( undefined == A ) { A=1; }
var CP = app.activeDocument.colorSamplers;
var sampleSize = A;
var r=((A-1)/2);
var x=Math.round(CP[s].position[0]-r);
var y=Math.round(CP[s].position[1]-r);
activeDocument.selection.select([[x, y], [x+sampleSize, y], [x+sampleSize, y+sampleSize], [x, y+sampleSize]], SelectionType.REPLACE, 0, false);
activeDocument.activeLayer.applyAverage();
var re = RegExp( '[123456789]' );
var sColor = new SolidColor();
if ( activeDocument.mode == DocumentMode.GRAYSCALE ) {
var gv = re.exec(activeDocument.channels[0].histogram.toString() ).index/2;
sColor.gray.gray = 100 * (gv/255);
if ( activeDocument.mode == DocumentMode.RGB ) {
sColor.rgb.red = re.exec(activeDocument.channels[0].histogram.toString() ).index/2;
sColor.rgb.green = re.exec( activeDocument.channels[1].histogram.toString() ).index/2;
sColor.rgb.blue = re.exec( activeDocument.channels[2].histogram.toString() ).index/2;
if ( activeDocument.mode == DocumentMode.LAB ) {
var lv = re.exec(activeDocument.channels[0].histogram.toString() ).index/2;
sColor.lab.l = 100 * ( lv/255 );
sColor.lab.a = ( re.exec( activeDocument.channels[1].histogram.toString() ).index/2 ) - 128;
sColor.lab.b = ( re.exec( activeDocument.channels[2].histogram.toString() ).index/2 ) -128;
if ( activeDocument.mode == DocumentMode.CMYK ) {
var cv = re.exec(activeDocument.channels[0].histogram.toString() ).index/2;
sColor.cmyk.cyan = 100 * (1-(cv/255));
cv = re.exec(activeDocument.channels[1].histogram.toString() ).index/2;
sColor.cmyk.magenta = 100 * (1-(cv/255));
cv = re.exec(activeDocument.channels[2].histogram.toString() ).index/2;
sColor.cmyk.yellow = 100* (1-(cv/255));
cv = re.exec(activeDocument.channels[3].histogram.toString() ).index/2;
sColor.cmyk.black = 100 * (1-(cv/255));
executeAction( charIDToTypeID('undo'), undefined, DialogModes.NO );
executeAction( charIDToTypeID( "CpTL" ), undefined, DialogModes.NO );// dupe selection to new layer
applyInsideStroke();
app.refresh();
var keep = confirm("Sample at px "+sX+','+sY+ ' is R:'+sColor.rgb.red+', G:'+sColor.rgb.green+', B:'+sColor.rgb.blue+'.\rKeep?',true);
app.activeDocument.activeLayer.remove();
activeDocument.selection.deselect();
if( keep == true )return sColor;
app.preferences.rulerUnits = origRulerUnits;
}catch(e){
app.preferences.rulerUnits = origRulerUnits;
function applyInsideStroke( sColor ) {
var sColor = new SolidColor;
sColor.rgb.hexValue = '6dfe02';// edit stroke color here
var desc = new ActionDescriptor();
var ref = new ActionReference();
ref.putProperty( charIDToTypeID('Prpr'), charIDToTypeID('Lefx') );
ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
desc.putReference( charIDToTypeID('null'), ref );
var effectDesc = new ActionDescriptor();
effectDesc.putUnitDouble( charIDToTypeID('Scl '), charIDToTypeID('#Prc'), 100.000000 );
var strokeDesc = new ActionDescriptor();
strokeDesc.putBoolean( charIDToTypeID('enab'), true );
strokeDesc.putEnumerated( charIDToTypeID('Styl'), charIDToTypeID('FStl'), charIDToTypeID('InsF') );
strokeDesc.putEnumerated( charIDToTypeID('PntT'), charIDToTypeID('FrFl'), charIDToTypeID('SClr') );
strokeDesc.putEnumerated( charIDToTypeID('Md '), charIDToTypeID('BlnM'), charIDToTypeID('Nrml') );
strokeDesc.putUnitDouble( charIDToTypeID('Opct'), charIDToTypeID('#Prc'), 100.000000 );
strokeDesc.putUnitDouble( charIDToTypeID('Sz '), charIDToTypeID('#Pxl'), 2.000000 );
var colorDesc = new ActionDescriptor();
colorDesc.putDouble( charIDToTypeID('Rd '), sColor.rgb.red );
colorDesc.putDouble( charIDToTypeID('Grn '), sColor.rgb.green );
colorDesc.putDouble( charIDToTypeID('Bl '), sColor.rgb.blue );
strokeDesc.putObject( charIDToTypeID('Clr '), charIDToTypeID('RGBC'), colorDesc );
effectDesc.putObject( charIDToTypeID('FrFX'), charIDToTypeID('FrFX'), strokeDesc );
desc.putObject( charIDToTypeID('T '), charIDToTypeID('Lefx'), effectDesc );
executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
Maybe you are looking for
-
How to sort photos in albums by date in iPhoto '11
For some reason that I have yet to divine, iphoto 11 jumbles the order of photos in any album I create. For example, I have an album called 'Family', and rather than display the photos by the date they were taken, it jumbles them into a mish mash of
-
Unable to Add alternative text and tooltips to your images
Hello, I am using Muse CC in Apple iMAC machine. The build version of Muse CC is 232. Having watched the video, http://tv.adobe.com/watch/learn-adobe-muse-cc/using-titles-and-alt-text-to-images/, I am unable to bring up the image property window wh
-
Screen flashes pink with yellow apple just after start up
My screen will flash pink with a yellow apple icon just after the spinning gears has stopped when I start up.
-
How can I update shockwave for director?
Hi My Shockwave For Director plug-in is out of date but when I try to download it from Adobe's website stage 2 is skipped & the update will not even download let alone install. Could anyone help please? I am currently using 12.0.4.14 Thank you!
-
temperature control and watering system for greenhouse using labview and arduino spesification : 1. max temp : 28 celcius (when temperature is more than 28 celcius, fan ON) 2. min temp : 20 celcius (when temperature is under 20 celcius, heater ON) 3.