Sponsored Content
Operating Systems OS X (Apple) Applescript application call problem... Post 302915607 by wisecracker on Thursday 4th of September 2014 02:27:04 AM
Old 09-04-2014
Hi Corona688...

The error report is below but it is now solved anyhow and I will correct the title.
Code:
54:63: syntax error: A “"” can't go after this identifier. (-2740)
Error: Couldn't open input file (-43)

Final code inside the function:-
Code:
sample()
{
osascript << APPLESCRIPT
	tell application "QuickTime Player"
		set sample to (new audio recording)
		set visible of front window to false
		tell sample
			delay 1.5
			start
			delay 1.5
			stop
		end tell
		quit
	end tell
APPLESCRIPT
wait
}

 

10 More Discussions You Might Find Interesting

1. Programming

Problem in system call

Dear Friends, I write a c program to list the directories recursively. For this I write a function called my_readdir to read the content of directory. For this I use read system call it returns -1, then I use readdir system call it gives comment terminated error or segmentation... (1 Reply)
Discussion started by: spmlingam
1 Replies

2. Solaris

Application Loading problem

I install a software xchm for opening chm files. I install software and also its required libraries. But when i start it; no GUI appears. Application got halt. Process name also appears in process list when i run top command. Appliation continously using cpu but no GUI appears. Please tell me... (7 Replies)
Discussion started by: mansoorulhaq
7 Replies

3. UNIX for Advanced & Expert Users

kernel call problem

hi all I want to make a kernel call which takes as input an integer x and prints 2*x Anyone who knows how could i do that? (1 Reply)
Discussion started by: sasa
1 Replies

4. AIX

problem in msgctl() system call

Hi, i am using IBM P6 server and OS is AIX 5.3. my code is written in c/pro C. i am facing problem in msgctl() system call.The variables msg_qbytes and msg_cbytes are used to store total no of bytes and current no of bytes in a QUEUE,but it is showing me as ZERO though data are there... (0 Replies)
Discussion started by: ajaysahoo
0 Replies

5. Shell Programming and Scripting

Recursive function call problem

This is shell script I have made to lists out directory contents and filenames for any given directory (without using ls command). There is some problem in dirfunc function call which I have marked 1 is not working. Can anybody suggest what is the problem there and how should I correct it. ... (2 Replies)
Discussion started by: netresearch
2 Replies

6. Linux

system call problem

hi, where can I find the detail information about the syscall in binary instructions of linux/mips. for example, in linux/mips: li v0, 4140 syscall it's a syacall of "lseek" , but how can I find that which registers will be used in this syscall , and the meaning of the arguments in the... (2 Replies)
Discussion started by: zerocool_08
2 Replies

7. Programming

C++ application halts at popen system call

Hi All, My application gets hang at the popen statement in Soalris 5.8. While debugging I found that it halts at _lwp_sema_wait. After googling I have added /usr/lib/lwp in the LD_LIBRARY_PATH and now it halts at lwp_park. Please help me what I need to do to solve this issue. The application runs... (6 Replies)
Discussion started by: Amiya Rath
6 Replies

8. Programming

socket system call can not succedd right after application crash.

hello all, I have developed a server application in C for ulinux kernel 2.6.It works very fine; creating a socket, binding it to a port, listening for incoming sockets and accepting them ,all finish without any error. But there is a problem regarding application crash.After an intentionally... (1 Reply)
Discussion started by: Sedighzadeh
1 Replies

9. Shell Programming and Scripting

awk , function call problem

#!/bin/bash awk ' function ad(t,r){ return (t+r); } BEGIN{ print ad(5,3); } { print ad(5,3); } ' Doesn't print anything for the last print ad(5,3); (6 Replies)
Discussion started by: cola
6 Replies

10. Programming

Problem with lseek call.

The following code: int fd; if (fd = open("mem", O_RDONLY) == -1) return 1; if (lseek(fd, 0, SEEK_SET) == -1) { char *buf = malloc(512); buf = strerror(errno); printf("%s\n", buf); return 1; } always returns with "illegal seek"... (2 Replies)
Discussion started by: Sir_Tomasz
2 Replies
smonitor(3C)															      smonitor(3C)

NAME
smonitor() - prepare execution profile SYNOPSIS
DESCRIPTION
is an interface to sprofil(2) for collecting sampling information for execution profiles. To use link in the library by specifying on the linker command line or on the compiler command line. See gprof(1). For any application compiled with the option, the library collects profiling sampling information. But if an application requires finer control over profiling, the library yields control to an application that uses To stop the collection of sampling information, use: Use gprof(1) to examine the results. Parameters is an array of structures describing the regions to be profiled. It is defined in header The structure has the following fields: The fields are as follows: is the start address of the text segment of the load module. is the end address of the text segment of the load module. is the name of the load module (not the path name). The name of the load module should be the same as recorded in the executable by is the number of elements in the array regions. is the starting address a buffer to collect sampling information. is the length of is the only memory region used by to collect profiling information, so it should be big enough for all specified regions. does not initialize With more than one call to in the same process, dumps the sampling information collected with the last call. does not discard the information collected in previous calls if it is present in the buffer passed to last call of is unused and kept for future usage. is used to choose 16-bit or 32-bit buckets to collect sampling information. If is set to treats the buffer as an array of 16-bit buckets; if set to treats the buffer as an array of 32-bit buckets. For more information refer to sprofil(2). EXTERNAL INFLUENCES
Environment Variables The behavior of is controlled by the environment variable. See gprof(1). behaves with different settings of as follows: does not set up the buffers to collect sampling information. It is expected that will be called explicitly to collect the sampling information. So it is the ideal case to call the explicitly. sets up the sampling buffer for all the load modules and starts to collect the sampling information. Now if is invoked explicitly, is stopped, the buffer allocated by is deallocated, and all the sampling information collected prior to calling is lost. uses the buffer passed as an argument and starts again. sets up the sampling buffer for the load modules ldm1 and ldm2 and starts to collect the sampling information. Now if is invoked explicitly, is stopped, the buffer allocated by is deallocated, and all the sampling information collected prior to calling is lost. uses the buffer passed as an argument and starts again. If is not set, behaves as though FILES
SEE ALSO
cc(1), gprof(1), sprofil(2). smonitor(3C)
All times are GMT -4. The time now is 02:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy