Is there a standard script that runs when a projector stops?
I know there are a couple of scripts I can use to set things up when starting a Director movie (startMovie and PrepareMovie). But are there also scripts I can use that run when the user chooses to shut down a projector? I want to run a script that sets the user's screen rez back to its original setting before shutting the projector down.
Thanks!
Dewey
Yes, I am looking at that one. But isn't that script activated each time a .dir movie is exited, even if it opens a different .dir movie? Or, is it only activated when the 'PROJECTOR stops?
The script I want to run should only run when you exit the projector.
Dewey
Similar Messages
-
Add code behind functionality that run when the user view the SP 2013 content pages
I need to add code behind functionality that run when the user view the SP 2013 content pages, What is the best approach to do that?
is it add Delegate Control to master page?
is it add code behind to master page?
is there an event reviver for that?
Your answer will be highly appreciatedHi,
According to me, for code behind stuff
Create master page(using module etc..), have the required placeholders in it.
Then, create a page that inherit from this master page, now you can use that placeholder in you page.
Lastly, place web parts in that placeholder. So, code behind will come with that master page .
Hope it helps.
Thanks
-Rahul -
My ipod is cracked and it chipped away a little more last night and that's when my wifi stopped working. My wifi works on every other device in my house except for my ipod. Is there something wrong with my ipod?
Does the iOS device connect to other networks?
Does the iOS device see the network?
Any error messages?
Try right next to the router
Do other devices now connect?
Did the iOS device connect before?
Try the following to rule out a software problem:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Power off and then back on your router
.- Reset network settings: Settings>General>Reset>Reset Network Settings
- iOS: Troubleshooting Wi-Fi networks and connections
- Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
- iOS: Recommended settings for Wi-Fi routers and access points
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar
Could it be this?
iOS: Wi-Fi or Bluetooth settings grayed out or dim
One user reported that placing the iPod in the freezer fixed the problem. A trick that works frequently with iPhones:
Settings > AirPlane Mode ON, Do Not Disturb ON
Power down and wait 5-10 minutes
Power up
Settings > AirPlane Mode OFF, Do Not Disturb OFF
If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
Apple Retail Store - Genius Bar -
Create a validation that runs when a button is pressed
Hi good people from this forum, I was wondering if it's possible to create a validation that runs when a button is pressed.
I'm using Oracle Apex 4.2.2 with Oracle Apex Listener 2.0 and Oracle Database XE 11g
Thank you so much for your time
P.S. On another note, How can I change my display picture =P?You can create a validation and give it's condition like 'When Button Pressed' and select a button name or select the Condition Type as 'Request=Expression1' and give request(button name) in Expression1.
Thanks
Lakshmi -
I've just bought an iPad and there's a line that runs the whole length of the screen about an inch from the outside edge of the screen. Have I bought a faulty product?
Try reset iPad
Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
Note: Data will not be affected. -
Logging out prevented by a script that runs forever
I have a script that needs to loop forever. Unfortunately, it doesn't quit when the user logs out, blocking the logout.
How can I either test if there's a logout pending (in which case the script can exit) or actually allow a logout to kill the script?
The alternate is to execute a non-looping script automatically every few minutes, but I don't know to do that without digging using cron somehow.In a word - you're doing it wrong.
If your script looks like this:
on run
repeat
-- do something
end repeat
end run
Then your script does not give the app any time to respond to system events, such as a quit or shutdown.
Instead you should write your script using an idle handler. The idle handler runs periodically (on a schedule you set), and allows the app to respond to the system in between each iteration:
on run
-- nothing really happens here
end run
on idle
-- do something - i.e. your code goes here
return 10 -- run again in 10 seconds
end idle -
Script that runs MSI from discovered location.
Hello everyone -
Still a noob here in scripting with powershell...
We use SCCM 2012, and i'd like a script that can parse through the ccmCache folder, find the desired MSI, and the use this path to work from(parameters, etc).
Below is what i have attempted, but to no avail.
When running the below...i get the T h i s i n s t a l l a t i o n p a c k a g e c a n n o t b e o p e n e d message in the script output...further telling me that the msi cannot be found.
The purpose of this is to wrap together a "find app version" script before the below script, so where it can back out if the desired version is already installed(we have a lot of image drift in with certain apps at my company).
I know its something im missing...and ideas?
TIA
$PathtoInstall = Get-ChildItem -Path C:\windows\ccmcache\ "jre1.7.0_05-c.msi" -Recurse
Foreach ($File in $PathtoInstall) {
If ($File.Exists) {
$install = $File.Name
& cmd /c "c:\windows\system32\msiexec.exe /i" $InstallSeems that I was able to get around this with my below edits to my script.
This script will find the relevant cache folder, throw the msi into the variable, then run the cmd line arguements that you wish to run.
Thanks to all for the assistance!
randy
$PathtoInstall=Get-ChildItem-PathC:\windows\ccmcache\"jre1.7.0_05-c.msi"-Recurse
Foreach
($Filein$PathtoInstall.Directory)
If($File.Exists)
cd$PathtoInstall.Directory
&cmd/c"C:\Windows\system32\msiexec.exe
/i $PathtoInstall/qb
/lv C:\temp\JavaTESTINSTALL.log" -
How to create script that run sudo-command?
I often need to run command:
sudo "/Library/Application Support/VMware Fusion/boot.sh" --restart
This needs to be run as admin.
Can anybody tell me how to create script that will login as admin and run that command in terminal?
Or from where can I get help how to add commands to a script?
Thanks
TomiYour best bet on getting a cogent answer is to post to the Unix forum under OS X Technologies.
-
Javascript that runs when document opens
I’m new to javascripting. I created a timesheet in Adobe Acrobat Pro 9 that the user can digitally sign. I need a script that will execute when the document opens that will check to see if a field has a certain value in it, and if it does, reset the signature field. When the employee opens the timesheet to fill it out each pay period I would like Acrobat to clear the signature field, removing their old signature. After signing the timesheet they send it to their supervisor for signature. I can’t add reset form to the doc open because I need the employee signature intact at this point, I don’t want it to remove the employee signature when the supervisor opens it to sign it. I would like Acrobat to examine a checkbox field called “Submitted for Approval”; if this field is checked, then leave the signature intact. If it isn’t checked, remove the signature. Can anyone help me with this script? I’m new to javascripting.
I’m new to javascripting. I created a timesheet in Adobe Acrobat Pro 9 that the user can digitally sign. I need a script that will execute when the document opens that will check to see if a field has a certain value in it, and if it does, reset the signature field. When the employee opens the timesheet to fill it out each pay period I would like Acrobat to clear the signature field, removing their old signature. After signing the timesheet they send it to their supervisor for signature. I can’t add reset form to the doc open because I need the employee signature intact at this point, I don’t want it to remove the employee signature when the supervisor opens it to sign it. I would like Acrobat to examine a checkbox field called “Submitted for Approval”; if this field is checked, then leave the signature intact. If it isn’t checked, remove the signature. Can anyone help me with this script? I’m new to javascripting.
-
Script that runs very slow when exporting output to XLS file
I am using TOAD for oracle to export result to XLS. Need help on this script to chec how can I speed up the process:
select a.div, a.zname, a.MBr, a.Loc,a.lname, b.mid as SLID, c.slname, a.FDID, b.FName as FDNAME,
a.apptdate,b."Contact Nos",
b."Credit Line",b."PastDue Acct"
From
select zname, Loccode,
lname,
FDID,
ApptDate,
div,
MainBr
from tbl1
)a,
select distid,name,managerid, dayphoneno || ' ' || mobilephoneno as "Contact Nos",
street || ' ' || zip as Address,
dealercreditamt as "Credit Line",
pastdueamt as "PastDue Acct"
from tbl2@DB2
)b,
select distid slid,name slname from tbl2@DB2
)c
where a.FDID=b.DISTID
and b.distid=c.slid;
SQL> @?/RDBMS/ADMIN/UTLXPLS
PLAN_TABLE_OUTPUT
| Id | Operation | Name | Rows | Bytes | Cost |
| 0 | SELECT STATEMENT | | 2137K| 515M| 243K|
| 1 | HASH JOIN | | 2137K| 515M| 243K|
| 2 | TABLE ACCESS FULL | tbl1 | 62280 | 4074K| 66 |
| 3 | HASH JOIN | | 2137K| 379M| 236K|
| 4 | REMOTE | | 2137K| 124M| 114K|
| 5 | REMOTE | | 2137K| 254M| 114K|
--------------------------------------------------------------------------mrp wrote:
I am using TOAD for oracle to export result to XLS. Need help on this script to chec how can I speed up the process:XLS is a poor output format for larger result sets. Why? because all tools that I know use a kind of cell-by-cell processing to fill the fetched values into Excel.
It is way faster to output into any kind of text (CSV) format. -
I have an Script mostly that is generated by SSMS which works with-out issue on SQL Server 2008, but when I attempt to run it on a new fresh install of SQL Server 2012 I get an Msg 8631. Internal error: Server stack limit has been reached. Please look for
potentially deep nesting in your query, and try to simplify it.
The script itself doesn't seem to be all that deep or nested. The script is large 2600 lines and when I remove the bulk of the 2600 lines, it does run on SQL Server 2012. I'm just really baffled why something that SQL Server generated with very
few additions/changes AND that WORKS without issue in SQL Server 2008 R2 would suddenly be invalid in SQL Server 2012
I need to know why my script which is working great on our current SQL Server 2008 R2 servers suddenly fails and won't run on an new SQL Server 2012 server. This script is used to create 'bulk' Replications on a large number of DBs saving a tremendous
amount of our time doing it the manual way.
Below is an 'condensed' version of the script which fails. I have removed around 2550 lines of specific sp_addarticle statements which are mostly just copy and pasted from what SQL Management Studio 'scripted' for me went I when through the Replication
Wizard and told it to save to script.
declare @dbname varchar(MAX), @SQL nvarchar(MAX)
declare c_dblist cursor for
select name from sys.databases WHERE name like 'dbone[_]%' order by name;
open c_dblist
fetch next from c_dblist into @dbname
while @@fetch_status = 0
begin
print @dbname
SET @SQL = 'DECLARE @dbname NVARCHAR(MAX); SET @dbname = ''' + @dbname + ''';
use ['+@dbname+']
exec sp_replicationdboption @dbname = N'''+@dbname+''', @optname = N''publish'', @value = N''true''
use ['+@dbname+']
exec ['+@dbname+'].sys.sp_addlogreader_agent @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1, @job_name = null
-- Adding the transactional publication
use ['+@dbname+']
exec sp_addpublication @publication = N'''+@dbname+' Replication'', @description = N''Transactional publication of database
'''''+@dbname+''''' from Publisher ''''MSSQLSRV\INSTANCE''''.'', @sync_method = N''concurrent'', @retention = 0, @allow_push = N''true'', @allow_pull = N''true'', @allow_anonymous = N''false'', @enabled_for_internet
= N''false'', @snapshot_in_defaultfolder = N''true'', @compress_snapshot = N''false'', @ftp_port = 21, @allow_subscription_copy = N''false'', @add_to_active_directory = N''false'', @repl_freq = N''continuous'', @status = N''active'', @independent_agent = N''true'',
@immediate_sync = N''true'', @allow_sync_tran = N''false'', @allow_queued_tran = N''false'', @allow_dts = N''false'', @replicate_ddl = 1, @allow_initialize_from_backup = N''true'', @enabled_for_p2p = N''false'', @enabled_for_het_sub = N''false''
exec sp_addpublication_snapshot @publication = N'''+@dbname+' Replication'', @frequency_type = 1, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 8,
@frequency_subday_interval = 1, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1
-- There are around 2400 lines roughly the same as this only difference is the tablename repeated below this one
use ['+@dbname+']
exec sp_addarticle @publication = N'''+@dbname+' Replication'', @article = N''TABLE_ONE'', @source_owner = N''dbo'', @source_object = N''TABLE_ONE'', @type = N''logbased'', @description = null, @creation_script =
null, @pre_creation_cmd = N''drop'', @schema_option = 0x000000000803509F, @identityrangemanagementoption = N''manual'', @destination_table = N''TABLE_ONE'', @destination_owner = N''dbo'', @vertical_partition = N''false'', @ins_cmd = N''CALL sp_MSins_dboTABLE_ONE'',
@del_cmd = N''CALL sp_MSdel_dboTABLE_ONE'', @upd_cmd = N''SCALL sp_MSupd_dboTABLE_ONE''
EXEC sp_executesql @SQL
SET @dbname = REPLACE(@dbname, 'dbone_', 'dbtwo_');
print @dbname
SET @SQL = 'DECLARE @dbname NVARCHAR(MAX); SET @dbname = ''' + @dbname + ''';
use ['+@dbname+']
exec sp_replicationdboption @dbname = N'''+@dbname+''', @optname = N''publish'', @value = N''true''
use ['+@dbname+']
exec ['+@dbname+'].sys.sp_addlogreader_agent @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1, @job_name = null
-- Adding the transactional publication
use ['+@dbname+']
exec sp_addpublication @publication = N'''+@dbname+' Replication'', @description = N''Transactional publication of database
'''''+@dbname+''''' from Publisher ''''MSSQLSRV\INSTANCE''''.'', @sync_method = N''concurrent'', @retention = 0, @allow_push = N''true'', @allow_pull = N''true'', @allow_anonymous = N''false'', @enabled_for_internet
= N''false'', @snapshot_in_defaultfolder = N''true'', @compress_snapshot = N''false'', @ftp_port = 21, @allow_subscription_copy = N''false'', @add_to_active_directory = N''false'', @repl_freq = N''continuous'', @status = N''active'', @independent_agent = N''true'',
@immediate_sync = N''true'', @allow_sync_tran = N''false'', @allow_queued_tran = N''false'', @allow_dts = N''false'', @replicate_ddl = 1, @allow_initialize_from_backup = N''true'', @enabled_for_p2p = N''false'', @enabled_for_het_sub = N''false''
exec sp_addpublication_snapshot @publication = N'''+@dbname+' Replication'', @frequency_type = 1, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 8,
@frequency_subday_interval = 1, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1
-- There are around 140 lines roughly the same as this only difference is the tablename repeated below this one
use ['+@dbname+']
exec sp_addarticle @publication = N'''+@dbname+' Replication'', @article = N''DB_TWO_TABLE_ONE'', @source_owner = N''dbo'', @source_object = N''DB_TWO_TABLE_ONE'', @type = N''logbased'', @description = null, @creation_script
= null, @pre_creation_cmd = N''drop'', @schema_option = 0x000000000803509D, @identityrangemanagementoption = N''manual'', @destination_table = N''DB_TWO_TABLE_ONE'', @destination_owner = N''dbo'', @vertical_partition = N''false''
EXEC sp_executesql @SQL
fetch next from c_dblist into @dbname
end
close c_dblist
deallocate c_dblist
George P Botuwell, ProgrammerHi George,
Thank you for your question.
I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
Thank you for your understanding and support.
If you have any feedback on our support, please click
here.
Allen Li
TechNet Community Support -
HOw do i tear down VOD Sessions that are older than 4 hours
NOTE: When the VOD Session Manager is a USRM, Cisco refers to this USRM as a VSM.
Here is an explanation of how the VOD Session Manager (VSM) initiates a release of VOD sessions that are older than 4 hours (configurable). The algorithm described below is similar to the releaseOldSessions script on the DNCS that many of our customers are familiar with. Both release VOD sessions that are older than 4 hours old. Also, the VSM has a retry and session audit mechanism built into its algorithm that is absent in the releaseOldSessions script on the DNCS. The main difference is that this functionality is built into the VSM, but the releaseOldSessions script must either be run manually on the DNCS or put into the DNCS crontab. The VSM will make the decision to release a VOD session base on age, typically configured for 4 hours, and then the VSM will send up to 3 teardown requests to the Edge Resource Manager (ERM). NOTE: Both the VSM and ERM are Linux servers running Cisco USRM software.
The “releaseOldSessions” algorithm is configured on the VSM in the Web UI under Applications.VodSm.Configuration as shown in the screen shot below:
Applications.VodSm.Configuration.SessionTimeout = 14,400 seconds (default, configurable)
ReleaseRetryCount = 3 (default, not configurable)
ALGORITHM: The VSM, being the VOD Session Manager, will send a session release request to the appropriate Edge Resource Manager (ERM) based on the configured “SessionTimeout”. By default this value is 14,400 seconds (4 hours, configurable). When the age of a VOD session reaches the SessionTimeout, the VSM will locate the appropriate ERM and send it a session release request for that session. If the ERM fails to acknowledge this release request, the VSM will retry the session release for the number of times configured in ReleaseRetryCount, which is 3. NOTE: Cisco Development has chosen a value of 3 for this parameter (the ReleaseRetryCount is not configurable). If after the 3rd release retry, the VSM still does not have an acknowledgement of session teardown from the ERM, the VSM will initiate a session audit of that ERM as a final attempt to tear down the session. -
How to create script that run sudo-command, via automator?
Hi
I'd want to create script to automate one command I need quite often. I just can't get this to work.
I'm not using english OS, but I think this is what I do. In automator I choose Utilities -> Run script
Here's the script I try to run:
sudo "/Library/Application Support/VMware Fusion/boot.sh --restart"
I found some tip to do it like this:
do shell script "sudo /Library/Application Support/VMware Fusion/boot.sh --restart password "pass" with administrator privileges
Where pass is my admin password.
This does not work, either.
Could anybody help me on this?
Thanks...
Tomi Toivonen
Message was edited by: TomiThis is not working. What's wrong?
What's wrong is that the '--restart' is a parameter for boot.sh, and therefore needs to be included within the quotes.
Additionally, the shell uses spaces to divide parameters, so the spaces in the command will make it appear as multiple commands - '/Library/Application', 'Support/VMware' and 'Fusion/boot.sh'. You need to escape them using a backslash:
<pre class=command>do shell script "/Library/Application\ Support/VMware\ Fusion/boot.sh --restart" password "pass" with administrator privileges</pre>
If it's outside of the quotes it would be interpreted as a parameter to 'do shell script' and it won't know what to do with that. -
Is there a docking unit that fits when IPOD case is on?
I have an new ipod touch 64gb and am looking for a docking station that will work when my speck candyshell rubber case is on the ipod. i bought an ihome unit but it won't fit into it with the case on... i talked to ihome and they said it will not work with ANY of their products with the case on. Are there any cases that will work with the case on?
ipods these days come with adapters (little plastic things in the box to make sure they fit docks, but they don't tend to allow for cases - i've just not bothered with the adapter, my ipod and case fit into my dock fine, maybe not as secure as it would be, but for me it's better than having to take the case off regularly.
i have also seen (not sure where) some cases that have removable sections at the bottom for this purpose. -
I want to make safari automatically open any html files that I email to myself using Send to Dropbox. I need an automator workflow that will automatically open any html files that are sent as .txt to a certain folder in my dropbox. This is the code I currently have:
ARGV.each do |f|
file = File.new(f, “r”)
while (line = file.gets)
system “open #{line}”
end
file.close
end
What am I doing wrong?
This is taken from this post: http://www.macstories.net/tutorials/how-to-send-any-webpage-from-ios-to-your-mac -browser/#comment-146806660.
As a side note, does anyone know of an easy way to send links to iphone and vice-versa? I know there is the icloud tabs option but I want something that will automatically open when I click send. It ***** that Google Chrome already has the feature and it works perfectly but Apple has yet to adopt such an extension. I find it pretty useful.
Any help would be appreciated.I forgot to mention that I keep getting this error...
-e:2 automator invalid char `\342' in expression
Maybe you are looking for
-
Macbook pro 15 inch wifi problem (late 2011)
Hello, Here I write a little desperate with this problem that I have on the MacBook Pro (late 2011) with WIFI . For several months ago, when I power on the MBP is all apparently normal , spend a few minutes and I lose the WIFI , the icon still comes
-
T410 with integrated graphics - DVI output not working on Mini Dock 3 (4337)
I tried connecting my external monitor to the DVI output of the Mini Dock and it did not work. I have since connected it with no issus to the VGA output. However, I want to use the digital (DVI) connection for my monitor........how can i fix this is
-
LOV is slow after selecting a value its taking much time to default
Hi, I have a dependent LOV. Master LOV is executing fine and its populatin into the field fastly. But Child LOV is very slow after selecting a value its taking much time to default. Can any one please help me if there is any way to default the value
-
Ive had the Macbook pro Retina for about a year and a half and the keyboard light never comes on. How can I fix it?
-
EXIT_SAPLEBND_002 -- user exit for release strategy
Hi, This is regarding help on user exit for release strategy, ref: note no. 365604, however after going through all the config part given in the given note we activate the fm in cmod.... but after activating the release tab goes off from me29n. That