Need script edit advice
Daring Fireball showed the script below that does a word count, in conjunction with ThisService. I want to edit it, so it counts characters. Can anyone tell me what to substitute for what? Thanks in advance!
on process(_str)
tell application "System Events"
set _appname to name of first process whose frontmost is true
end tell
tell application _appname
display alert "Word count: " & (count words of _str)
end tell
end process
Hello
Why not try to use
display alert "Character count: " & (count characters of _str)
Yvan KOENIG (from FRANCE samedi 3 février 2007 15:58:46)
Similar Messages
-
What is the most cost effective program to "view" only "ai" files, no need to edit
I would like to know what is the most inexpensive program to view only vector "ai" files. I receive artwork from artists and need to view, but have no need to edit the work. I find Illustrator to be very expensive for this view only option. Any advice or help would be greatly appreciated. I tried a few programs on the web such as softusolve and they opened everything but "ai" despite saying it opens these file extensions.
Thank you in advance for any advice.You didn't say what operating system you are using but if all you are doing is looking at the file and you are on a Mac, then try Art View: http://www.code-line.com/artview/
It provides Quick Look for Illustrator, InDesign, EPS, ASE, and even FreeHand files. Shows what fonts and colors are used in the file and If the AI file has multiple artboards, you can scroll through all of them in the preview. Shows date created and modifed.
Cost $25. -
Need an expert advice in Implementing continuous delivery across environments
Hi All,
I need an expert advice/solution in implementing continuous delivery in our project. (PF Screenshot)
Deployment goes like this..
Dev checks in -> TFS Builds - > RM Invokes -> using PS/DSC -> Copies the binaries to DIT environemnt's IIS virtual dir -> Manual replacement of Web.config files (since we have many environments)- > App runs
PS/DSC does following things : Copies binaries using X copy , Uploads SP excel reports , Executing Dacpac scripts etc ..
Now the chanllenge earlier faced was wrt Web.Config files was, for every DIT environment many configurations, conn strings would change. In order to overcome this , Implemented Web.config transformations( like Web.DIT1.Config .... Web.DIT6.config in my solution
explorer.
Added a custom MSBuild script in my .csproj file and before triggerig the build defination I 'd change in Process tab- > Basic - > Configuration = DIT1 (based on requirement) and triggers . )
It perfectly deploys to the DIT 1 without manually replacing WEb.config files.
1) Now the blocker for me, Can we achieve this without Web.config transformations ? Since I don't want to expose the sensitive date in config files is there any way to implementing the same ?
2) I wanted to have continuous deployments from DIT to SIT and from SIT to UAT etc , How can we achevive the same ?
I m planning to implement the same with web.config tokenizing in RM?
Looking for some expert advice in achieving the same?
Many Thanks ,
Abraham DhanyarajHI Abraham,
Instead of having web config transformations to set config values for each environment do the following.
1. Have one transformation config say for example web.release.config which will contain tokens understood by RM (starting and ending with double underscore) for each config value.
<log4net>
<appender name="FileAppender" type="log4net.Appender.FileAppender">
<file value="__log4netLogFile__" xdt:Transform="Replace" />
</appender>
</log4net>
<ClientsSection>
<Clients xdt:Transform="Replace">
<add Id="__ClientId1__" Secret="__SecretCode1__" RedirectUrl="__RedirectUrl1__"></add>
<add Id="__ClientId2__" Secret="__SecretCode2__" RedirectUrl="__RedirectUrl2__"></add>
</Clients>
</ClientsSection>
<appSettings xdt:Transform="Replace">
<add key="MinCaps" value="2" />
<add key="MinSymbols" value="1" />
<add key="MinNumerics" value="1" />
<add key="MinLength" value="6" />
<add key="MaxLength" value="" />
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="PreserveLoginUrl" value="true" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="WebPortalName" value="__WebPortalName__" />
<add key="TimeZoneFrom" value="Pacific Standard Time"/>
<add key="TimeZoneTo" value="Mountain Standard Time"/>
</appSettings>
The TFS builds can generate output with above formatted configs with web config transformation.
2. Then in RM server templates change the config files to have values depending on the environment. You can do this using a custom deployment component or default xcopy deployment component to set parameters.
3. Then in the release template set the config values.
Cheers!
Chaminda -
I need script which will filter a set of groups by name, and then give a CSV with direct members
say it like,
$groupitems = Get-ADGroup -SearchBase "DC=fincaint,DC=local" -Filter {Name -like "*AppUsers"}
ForEach ($groupitem in $groupitems)
IF ($groupitem.objectClass -eq 'user')
Get-ADUser $groupitem | FT Name, Email, City, Title | Export-Csv c:\member.csv
IF ($groupitem.objectClass -eq 'group')
Get-ADgroup $groupitem | FT GroupName, GroupDN | Export-Csv c:\member.csvHi Dhiravia,
It's been a while. How is it going? If the suggestion provided by ThmsRynr doesn't help, for scripting questions, in order to get better help, it's recommended that we ask for advice in the following scripting forum.
The Official Scripting Guys Forum
https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
Best regards,
Frank Shen
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] -
Hi, I need help and advice. Basically me and my ex partner both had iphones and synced it with the same computer under the same ID. We split up and now im trying to get all my apps and info onto my new laptop with a new account but it keeps asking me for the old apple ID which she is still using and she changed the password. i tried backing it up but still nohing. When i try to back up purchased items being apps etc its keeps asking for the old one. help
See Recover your iTunes library from your iPod or iOS device. But you'll still need the password.
Once you have the computer authorized to use the account she could change the password again to stop you buying apps on her card (assuming it's not on yours!). It would lock you out of upgrading them too but they should work unless she uses the deathorize all feature.
It depends on how amicable the split is...
tt2 -
Using CS5 - need to edit and save pdf
I have a pdf file that is a sales flyer. I need to edit just the first page of the 50 page pdf file. I can open and edit page 1 no problem. I need to know how to save it back into the complete pdf file as page 1. Right now all I can figure out is how to save that individual page.
Thanks for your help.You cannot. You still need Acrobat or InDesign somewhere in there to merge your edited page back with the others. That being said, the whole thing could still explode in your face as PDFs are simply not meant to be editable work files...
Mylenium -
I need to edit text in a jpeg file. How do I do that?
I need to edit text in a jpeg file. How do I do that?
Unfortunately you can't. A JPEG is a flat raster (pixel-based) image file which has no awareness of "text" inside it. You could try to erase the text and graphic under it and then recreate the text, but it's best to do so using a mastering format such as PSD (Photoshop) or PXM (Pixelmator), so that you can export as JPEG but keep your layered master for later editing.
Matt -
I need to edit out parts of a song to cut it down to two minutes for my daughter's talent show. I went to info/start time and it will cut down one part but only one part. I need to put three parts together. I tried adding duplicates of the song to the list but if If I change the start time on one it will change it on all of them.
In your library, right-click the song you want to edit.
select "get info".
go to "options" and select the start and stop times for your first section of the song.
click "OK".
Find the shortened version of the song in your library. It may take a minute for it to show up. right click it again and select "create (????) version". (the ???? is different for different formats).
The library will spit out a new, second version of the song which you can rename. I suggest you use the original title and add a 1 to the end.
Now you can go back to the other version and repeat the process with a different start/stop time.
Once you are done editing, you can burn all of your versions to a disk, just make sure your interval time is zero so there are no gaps between edits.
To keep the orginal song on your library, just go back to the original and put the start/stop times back to the original settings. -
Can't open my pdf file in Word it is converted to word but I need an editable copy
I can not open my file in word it is converted to a word file but it will not open and I need an editable copy
Hi,
Please let me know the exact workflow you are following.
Does it occur with all files?
Are you trying to convert from within Reader or from Browser.
If from Reader then make sure you are signed in within Reader
Also try updating Reader to the latest v11.0.09 and check.
Regards,
Florence -
I have been sent a .pages document and would like to extract the photos included in the document as jpegs (need to edit on photoshop and put back in), is this possible? can't figure out how to do it.
I'm going to answer my own question:
Easy steps
Locate the document in the Finder.
Control/Right-Click on its icon.
Select Show Package Contents
All images and embedded objects appear in ‘Data’ folder
From this blog
http://vernonchan.com/2013/10/how-to-extract-images-from-apple-pages-5-0-documen t/ -
Hi, somebody knows how to edit a file that I created in corel draw 11 and I need to edit like PDF!!!! is so simple and nobody knows howwwwwwwwwwww!!!!
See your other thread.
-
I need to edit a re-occurring event in calender on my iPhone and there is no edit button for that event. How do I edit or delete it?
I am not sure how this works but it seems that it may be all or nothing.
To turn off Facebook events on your device:
Settings > Facebook > Calendars > Off
If you do not want to disable everything, maybe this thread will help:
https://discussions.apple.com/thread/4349443 -
I have photoshop and muse but need video editing which plan would be best for me.
I have photoshop and muse but need video editing which plan would be best for me.
Photography plan is $9.99 and each added program is $19.99 so do the math and decide if you want the entire plan
Cloud Plans https://creative.adobe.com/plans
-Special Photography Plan includes Photoshop & Lightroom & Bridge & Mobile Lightroom
-Special Photography Plan includes 2Gig of Cloud storage (not the 20Gig of the full plan)
-http://helpx.adobe.com/creative-cloud/faq/mobileapps.html
-http://helpx.adobe.com/photoshop/kb/differences-photoshop-creative-cloud-photography.html
-and subscription terms http://www.adobe.com/misc/subscription_terms.html
-what is in the entire Cloud http://www.adobe.com/creativecloud/catalog/desktop.html
-http://www.adobe.com/products/catalog/mobile._sl_id-contentfilter_sl_catalog_sl_mobiledevi ces.html -
HT5622 I need to edit my payment details for iPhone 3
I need to edit my payment details for iPhone 3 in app store ?
Read here:
http://support.apple.com/kb/ht1918 -
Do I need Enterprise Edition license for Grid Control
We are planning on installing Oracle 10g Grid Control onto a server that does not currently have Oracle on at all. It is a 2 processor server. Using this we will be monitoring Oracle databases on 2 other servers, each of which also have 2 processors.
My question is do I need Enterprise Edition or will Standard Edition be ok? We will be using the diagnostics pack in Grid Control, and also rman on the same server. Do I definitely need Enterprise Edition?
Many thanks,
Paula.Licence questions should be always addressed to an authorized Oracle sales representative, no one in this forum can give you an official and committed answer, you can rely on.
At least documentation shows all Management Packs require the Enterprise Edition:
http://download.oracle.com/docs/cd/B19306_01/license.102/b14199/options.htm#CIHGFIAF
Werner
Maybe you are looking for
-
Transferring credits from one account to another..
Hi there, I have a skype account in my name. I have subscriptions on that account as well as credit. I would like to pay my subscription from my credit amount and as well, would like to transfer credit to a new account I just set up for my husband..h
-
Loading Itunes TV show to Video Ipod fails
I purchased an Itunes season pass for BCS football games. The pregame content and the the short cut version (approx 20 minutes runtime each) loaded fine. When trying to get the full broadcast transfered from Itunes to the Pod (2+ hours of content) it
-
User template folder moved to trash how to put back in sytem library
moved user template folder to trash by mistake how do i put it back in the system library
-
I have CSV file which has sdimiler data I am inserting those date to desinated table and while executing this query mentioned below I get error mentioned in TITLE insert into SU_EDIT_DETAIL(EDIT_FUNCTION, TABLE_FUNCTION, CODE_FUNCTION, CODE_TYPE,
-
Transpotation among three servers .
Dear Guru , I am New in Sap Basis , I have three servers . DEV , QUT , PRD. in DEV I have create 200 client which in a copy of 001 client . After configuration in Development server . I need to create 300 Client in QUT server . using SCC4 T.Code . M