App reverts to old Executable Name when run by AppleScript?
Currently I have an app that I made in AppleScript that does a variety of different tasks when it runs. Part of the task that it performs includes opening up another app which I did not build but downloaded off the Internet (secondaryapp.app).
The original executable name (i.e. the listing under CFBundleExecutable in the Info.plist) of this secondary app is something that is kind of obnoxious and I would really like to change it because I type it in to Terminal a lot so that I can quit the app using the kill command. For the purposes of this post lets just say the original executable name was "old-exec-name." I would really like to change "old-exec-name" to "new-exec-name." To do this I changed both the Info.plist entry and the name of the executable file in the Mac OS folder to be "new-exec-name" and then I archived and unarchived the app to make sure the changes stuck.
When I click on the secondary app (secondaryapp.app) and tell it to open in Finder the program runs fine and the new executable name seems to be working and responds when I use 'killall QUIT "new-exec-name"' in Terminal. However when I use my AppleScript application which launches secondaryapp.app as part of its script the secondary app is run under the old executable name and can only be quit using 'killall QUIT "old-exec-name"' which is exactly what I was trying to change in the first place.
Can anyone explain why is happening and/or how I might fix it please? Any help would be much appreciated.
P.S. I am aware of some other solutions to this such as using aliases in Terminal to avoid typing out the Exec name all the time but I would really prefer to just change the the name. Also I have tried restarting my computer and rebundling the entire AppleScript app from scratch in order to get the app to run under the correct name but I have had no success.
Sherry,
I've had similar problems in the past, and it usually ends up being that FORMSnn_PATH contains a directory with an older version of the form in it. Alternatively, I have found that if the "new" form is invoked from a form that I already have open, then the O/S seems to use a cached version of the target form. Exiting Forms and re-running the app sometimes helps.
Hope this is of some use.
null
Similar Messages
-
KSLD how to specify kernel name when run ksld command on host
I am trying to use KSLD v1.0 and I could not reproduce similar result shown on KSLD User Guide. I followed almost everything on KSLD User Guide except I don't know how to specify kernel name when running ksld command. Here is what I have tried.
#ksld -t debug /ksld-space/slo8/proto/root_sparc/platform/sun4u/kernel/sparcv9/unix 99
I can only get unix and krtld read in. (ksld_dbx)modules could not show any modules *.o
When I use this
#ksld -t debug /ksld-space/slo8/proto/root_sparc/platform/sun4u/kernel/sparcv9/genunix 99
then I can only read on genunix.
Example on KSLD User Guide use unix.281, what is unix.281 created or obtained from target.
I noticed some SUN Tachnical Support Guru are online to answer questions, thank you for your quick reply.I am having the same problem, did you get a solution?
Thanks,
I am trying to use KSLD v1.0 and I could not reproduce
similar result shown on KSLD User Guide. I followed
almost everything on KSLD User Guide except I don't
know how to specify kernel name when running ksld
command. Here is what I have tried.
#ksld -t debug
/ksld-space/slo8/proto/root_sparc/platform/sun4u/kernel
sparcv9/unix 99
I can only get unix and krtld read in.
(ksld_dbx)modules could not show any modules *.o
When I use this
#ksld -t debug
/ksld-space/slo8/proto/root_sparc/platform/sun4u/kernel
sparcv9/genunix 99
then I can only read on genunix.
Example on KSLD User Guide use unix.281, what is
unix.281 created or obtained from target.
I noticed some SUN Tachnical Support Guru are online
to answer questions, thank you for your quick reply. -
Network Error []: Cannot Get Host Name when running business rules
Guru's
We are getting the following error intermittently when we are running business rules (Planning Application >>Tools>>Business Rules) or running SmartView refreshes:
Network error []: Cannot Get Host Name
The following is then logged in the Essbase Application logs:
Local/Application/Database/admin@Native Directory/Error(1042022)
Network error []: Cannot Get Host Name.
A quick look at the Essbase Error Messages Doc says it is a network error and we have to consult the network documentation. Unfortunately this is not very descriptive so we logged an SR with Oracle but we don't seem to be getting a resolution.
The environment is 11.1.2.0 and the architecture is as follows:
Server 1 - MS Server 2008 x64:
Planning, Calc Manager, Foundation Services, Framework Web Services, EAS, APS, Web Analysis, FR Web Services
Server 2 - MS Server 2008 x64:
Essbase Server
Server 3 - MS Server 2008 x64:
Framework Services, FR Print Services
We have tried doing the following:
1. Put in the server host names into the hosts file on the Hyperion Servers
2. Applied the following TCP/IP settings on all the Hyperion Servers and one of the user machines as a test:
- Added a new DWORD Value named TcpTimedWaitDelay and set it to 30.
- Added a new DWORD Value named MaxUserPort and set it to 65534.
- Added a new DWORD Value named MaxFreeTcbs and set it to 6250
3. Confirmed that there are no packet drops by monitoring the server NICs so no packet loss could be the cause of this issue
4. The Essbase Config file has the following settings:
NETDELAY 2000
NETRETRYCOUNT 2500
Has anyone come across this issue and if you managed to resolve it, how did you go about it.
ThanxHi Rahul
The issue is happening to a number of calcs so it it not one calc specifically. I will ask the functional consultants to enhance the logging in the business rules so that we can see if the issue happens on a specific member\block etc and yes we do use Xrefs
We can run this as a calc in EAS without any issues and it's intermittent because this business rule runs 95% of the time in Planning Application >> Tools >>Business Rules without any issues.
Thanks -
Changed File Name but reverts to original file name when exported or copied
I created a folder of 150 photos for a video montage and numbered them all by editing the file name. When I export (or copy and paste) the images to a folder on my desktop, the files all revert back to their original file names. Any ideas?
In iPhoto what you see originally is the file name as the title. Any changes to it remain in iPhoto unless you export out with the appropriate options to either same the title with the file and/or use the title as the file name.
When you export the photos via the File->Export->File Export menu option there's a File Name drop down menu at the bottom from which you can select Use Title. That will give you the Titles you changed as the new file name.
OT -
How to revert to old site name and link?
I just created a disaster. I had several videos pages published and the ugly links are connected to an email autoresponder. I recently tried to clean up the title of the links from within iWeb by changing the default site name and the result was the URL for the links on each page were changed. Now the old links to the site doesn't work cuz the links are different cuz of the new site name. How can I revert back to the old name of the site so my old backlinks to the site work?
Change the site name back to the original in iWeb and then republish the whole site.
-
Have tried to get Apple Tech Support and local Apple techs to deal with this problem to no avail. Apple store "genius" throws up hands and says nothing can be done. Root of the problem seems to be that the old non-email AppleID is stuck in their system creating a catch22 that it appears as the account purchasing Apps, then is not recognized as a valid ID, and then disallows any attempt to change it to a recognized email address.
Consequence is that Apps appropriately purchased can not be updated. Apple store advises us to delete them and repurchase, but this seems more Windowsian than Applian. Any Ideas??Hello J_DougBC,
Thank you for posting in the Apple Support Communities. I found an article that addresses Apple IDs that are different than the Primary Email Address on the account. You will need to go to https://appleid.apple.com/ to "Make your Apple ID and email address one and the same."
If your Apple ID and primary email address do not match, or they match but the email address is unverified, you can edit them.
1. Sign in to My Apple ID to manage your account information.
2. If you want to add and verify an email address that matches your Apple ID, follow the dialog box that says "Make your Apple ID and email address one and the same." This will automatically unverify that email address from any other Apple ID for which it was previously verified.
3. If you want to change your email address to one that does not match your Apple ID, click Edit next to your Primary Email Address. If this email address is already associated with another Apple ID, you will need to sign in with that Apple ID and delete it before you can add it to your preferred Apple ID.
Note: If you have an @me.com or @mac.com Apple ID and primary email address, you cannot edit your primary email address once it has been verified. To change your @me.com or @mac.com primary email address to another email address, contact Apple Support for assistance.
You can find the full article here:
Associating and verifying email addresses with your Apple ID
http://support.apple.com/kb/HE68
I hope this helps get you back on track!
Best,
Sheila M. -
Apps reverting to old versions.
My iPhone 5 automatically updates applications but once they've finished downloading they revert to their old version?
Also my emails will not delete, they keep on re-syncing not matter how many times I put them in the trash. I'm talking thousands of emails from over a year ago.
What could be causing these issues?Rolling back to previous versions of iOS is not supported.
Regardless, doing so cannot fix a SIM card not supported message.
Try the basic troubleshooting of reset, restart, restore. If none of those resolve the issue, then either the SIM card is bad/failed/not supported or the SIM card reader in the device has failed. -
I don't know of there is anyone than can fix this age old Apple problem. Does anyone know how to retrieve apps under an old Apple ID when the email used for that account no longer exists & I can't remember the password? After speaking with Apple Acct. Security, I got the security Q right but my birthday was wrong! They wanted the serial number from my phone that was 3 iPhones ago! Seriously??!!
Any updated way to work around this? No Apple people can correct it.
Thanks,
JoeYou need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
(122986) -
Error 10810 when running applescript remotely
So "final" product here. I'm no applescripter so my code is probably inefficient. As such I keep running into a -10810 error and from my googling and research I think it's a runaway process (or a few of them) created by this script. I run it through Casper remote. It's a compiled script for compatibility with Casper Remote. Running as a standalone app (or as a compiled script on the local desktop) it works just fine. It's only through Casper Remote that I get this error and only sometimes. The script works even when no one is logged in. Casper Remote runs as an admin and forces sudo when it needs to.
Any ideas as to what might be causing the failure? The script fails very quickly when it does. It certainly does not get to the point where it gathers all apps on the computer.
TIA!
Andrew
(*This script should be run first on a computer to be upgraded.
It collects the size of the users's homefolder and any folders
common to all users (Workfolder, PAGEFOLDER, etc). Common units get
all users transfered. It also collects apps installed in /Applications. It is to
be run again on the new computer to verify that all data and apps were
copied over correctly. It outputs the data to a log at
/netappv2/MacPackaging/FY12MacDAC-UserMigration titled with the
User's username, old mac name *)
on run argv
-- Define static variables --
---- "\n"
-- Capture the user's name (passed from Casper Remote)
set userName to item 4 of argv
-- if a username was not passed to the script, quit immediately
if userName = "" then
do shell script "echo No username specified! Try again with a valid username"
error number -128
else if userName is in {"Common", "common", "COMMON"} then
do shell script "echo **********THIS IS A COMMON UNIT. ALL USERS WILL BE TRANSFERED! **********"
end if
-- Capture computer name and current date
set computerName to computer name of (system info)
set currentDate to current date
-- Define file access --
-- We first have to create a file so we can reference it via Applescript for writing. We do this via the shell
set shellLogFile to computerName & "-" & userName & ".txt"
do shell script ("mkfile 10k /private/var/root/Desktop/" & shellLogFile)
-- Make a directory on the server particular to this user and computer since two reports will be made: one for the old computer and one for the new
set logFolder to computerName & "-" & userName
do shell script "mkdir -p -m 777 /Volumes/MacPackaging/FY12MacDAC-UserMigration/" & logFolder
-- Open a text file for writing the DAC data collection information. Alias it to the file we just created
-- the file is located on roots desktop, but it is aliased to the current user's desktop (if one is logged in)
set logFile to (((path to desktop) as string) & computerName & "-" & userName & ".txt") as alias
open for access logFile with write permission
set eof of logFile to 0
-- Write log headers --
-- Write relevant user and computer information to the log file
if userName is equal to "common" then
write "**********THIS IS A COMMON UNIT. ALL USERS WILL BE TRANSFERED! **********
" to logFile
write "
" to logFile
end if
write "Report run date: " & currentDate & "
" to logFile
write "User to be migrated: " & userName & "
" to logFile
write "Computer to be migrated: " & computerName & "
" to logFile
write "=========================" & "
" to logFile
write "
" to logFile
-- Begin data collection output --
-- First check for the existence of partition "work"
write "Folders on Work partition to be transfered" & "
" to logFile
write "========================================" & "
" to logFile
set workPath to "Work" --we are only looking for partition "Work"
tell application "System Events"
if workPath is in (get the name of every disk) then -- list all partitions and check for "Work." If found, set folderList to the contents of Work
set folderList to list folder workPath without invisibles
else
set workPath to (get the name of every disk) -- if "Work" is not found, list the mounted partitions and exit
write "No Work partition! Available partitions are: " & workPath & ". Exiting." & "
" to logFile
do shell script "echo No Work partition!"
do shell script "echo Available partitions are: " & workPath
close access logFile
error -128
end if
end tell
-- Next write the root level contents of the Work partition and their sizes. These main folders and their entire contents (except Users) will be transferred. For user folders, only the /Users/username and Users/Shared folder will be transferred
set totalSize to 0 --set a count for the size of each folder found. This will be the total size of all data to be migrated
repeat with aFolder in folderList
if aFolder contains "Users" then
set userFolder to "/" & aFolder & "/" & userName -- rename the folder to the explicit path to the users home folder (name provided when the script was run), since we aren't interested in any other user folder
set sharedFolder to "/" & aFolder & "/Shared" -- create another variable to hold the Shared folder since we need to copy this as well
set UNIXFolder to quoted form of POSIX path of userFolder
set folderSize to (do shell script "du -k /Volumes/Work" & UNIXFolder & " | tail -rn1 | awk '{print \"\" $1}'") as integer -- extract the size of the users home folder
set totalSize to totalSize + folderSize
write userName & " home folder - " & CalcFolderSize(folderSize) & " " & KBMBGB(folderSize) & "
" to logFile
set UNIXFolder to quoted form of POSIX path of sharedFolder
set folderSize to (do shell script "du -k /Volumes/Work" & UNIXFolder & " | tail -rn1 | awk '{print \"\" $1}'") as integer -- extract the size of the Users/Shared folder using the same method as above
set totalSize to totalSize + folderSize
write "Users/Shared - " & CalcFolderSize(folderSize) & " " & KBMBGB(folderSize) & "
" to logFile
else if aFolder does not contain "Users" then
set UNIXFolder to quoted form of POSIX path of aFolder
set folderSize to (do shell script "du -k /Volumes/Work" & UNIXFolder & " | tail -rn1 | awk '{print \"\" $1}'") as integer -- extract the size of aFolder if other than "Users"
set totalSize to totalSize + folderSize
write aFolder & " - " & CalcFolderSize(folderSize) & " " & KBMBGB(folderSize) & "
" to logFile
end if
end repeat
write "____________________" & "
" to logFile
write "Total copy size: " & CalcFolderSize(totalSize) & " " & KBMBGB(totalSize) & "
" to logFile
write "
" to logFile
-- Record all departmental apps that need to be installed on the new mac
write "Departmental apps to install on the new mac" & "
" to logFile
write "===========================================" & "
" to logFile
-- A pre-defined list of departmental apps. These apps are not included in the AG Core image and need to be installed on the new mac. All relevant transferrable apps are in the Applications and Utilities folders. Apps installed elsewhere are not AG standard and do not get transferred
set theApps to {"Adobe Acrobat 7.0 Professional.app", "Adobe After Effects CS4.app", "Adobe After Effects CS3.app", "Adobe Fireworks CS3.app", "Adobe Flash CS4.app", "Adobe Flash CS3.app", "ColorEyes Display Pro.app", "ColorThink 2.2.1b2", "Corel Painter X.app", "DiskTracker 2.3.2", "DiskTracker.app", "Dreamweaver.app", "EPSON Scan.app", "Fetch.app", "formZ RenderZone Plus.app", "Google Earth Pro.app", "Google Earth.app", "iMovie.app", "Keyspan Serial Assistant.app", "Flash 8.app", "Microsoft Excel.app", "Microsoft Excel", "Microsoft Word.app", "Microsoft Word", "Microsoft PowerPoint.app", "Microsoft PowerPoint", "PhotoZoom Pro 2.app", "Product Ingest.app", "Product Tag.app", "Art Ingest.app", "ProfileMaker", "TextWrangler.app", "Toast Titanium.app", "ToolCrib.app", "Winclone.app", "Suitcase Fusion 2.app", "Suitcase Fusion 3.app", "BRASS.app", "Final Cut Pro.app", "Pro Tools LE.app", "LightWave", "VMware Fusion.app"}
set appsPath to (path to applications folder)
tell application "Finder"
set appList to name of every application file of entire contents of folder appsPath
end tell
repeat with anApp in theApps
if appList contains anApp then
set anAppID to id of (application anApp)
if anAppID is not equal to "????" then
tell application "Finder" to tell (application file id anAppID)
set vers to version of application file id anAppID
set parentFolder to name of its container
end tell
if parentFolder is in {"Applications", "Utilities"} then
set parentFolder to ""
end if
write anApp & "
" & "Version: " & vers & "
" & parentFolder & "
" to logFile
write "--------------------------------------" & "
" to logFile
write "
" to logFile
else if anAppID is equal to "????" then
write anApp & "
" to logFile
write "--------------------------------------" & "
" to logFile
write "
" to logFile
end if
end if
end repeat
write "
" to logFile
-- Collect all the printers that need to be installed on the new Mac
write "Printers to install on the new mac" & "
" to logFile
write "===================================" & "
" to logFile
(*tell application "Printer Setup Utility"
set printerList to the name of every printer as list
end tell
repeat with aPrinter in printerList
write aPrinter & "
" to logFile
end repeat*)
set printerList to do shell script "lpstat -a | awk '{print $1}'" as text
write printerList & "
" to logFile
close access logFile
-- edit file permissions so everyone can read it
do shell script "chmod 755 /private/var/root/Desktop/" & shellLogFile
-- copy the file to macpackaging for later use
do shell script "ditto /private/var/root/Desktop/" & shellLogFile & " /Volumes/Macpackaging/FY12MacDAC-UserMigration/" & logFolder
end run
-- subroutine for converting folderSize
on CalcFolderSize(KBParam)
if KBParam ≥ 1048576 then -- convert to GB
return (KBParam / 1024 / 1024)
else if KBParam ≥ 1024 then -- convert to MB
return (KBParam / 1024)
else
return (KBParam)
end if
end CalcFolderSize
-- subroutine for determing KB, MB, or GB
on KBMBGB(paramSize)
if paramSize ≥ 1048576 then -- 1GB
return ("GB")
else if paramSize ≥ 1024 then -- 1MB
return ("MB")
else
return ("KB")
end if
end KBMBGBSo AS can't get the physical size of the folder it finds. I think I know the reason though. The script lists the contents of the Work volume in this snippet:
set workPath to "Work" --we are only looking for partition "Work"
tell application "System Events"
if workPath is in (get the name of every disk) then -- list all partitions and check for "Work." If found, set folderList to the contents of Work
set folderList to list folder workPath without invisibles
else if
... stuff ...
end if
end tell
Then later I have it doing this:
else if aFolder does not contain "Users" then
tell application "System Events"
set folderSize to (physical size of aFolder) div 1024
end tell
set totalSize to totalSize + folderSize
write aFolder & " - " & CalcFolderSize(folderSize) & " " & KBMBGB(folderSize) & "
and I get the following from the AS editor events pane:
tell current application
system info
--> {AppleScript version:"2.1.2", AppleScript Studio version:"1.5.1", system version:"10.6.7", short user name:"acaldwell", long user name:"AC Andrew Caldwell (8318)", user ID:1.092545022E+9, user locale:"en_US", home directory:alias "Work:Users:acaldwell:", boot volume:"AG2025", computer name:"AG2025", host name:"ag2025.amgreetings.com", IPv4 address:"10.104.20.113", primary Ethernet address:"00:17:f2:07:ec:dc", CPU type:"Intel 80486", CPU speed:2660, physical memory:4096}
current date
--> date "Wednesday, June 8, 2011 4:24:49 PM"
path to desktop as string
--> "Work:Users:acaldwell:Desktop:"
open for access "Work:Users:acaldwell:Desktop:AG2025-acaldwell.txt" with write permission
--> 47
set eof 47 to 0
write "Report run date: Wednesday, June 8, 2011 4:24:49 PM
User to be migrated: acaldwell
Computer to be migrated: AG2025
=========================
" to 47
write "Folders on Work partition to be transfered
========================================
" to 47
end tell
tell application "System Events"
get name of every disk
--> {"AG2025", "Work", "home", "net", "Public", "MacPackaging"}
list folder "Work" without invisibles
--> error number -10004
end tell
tell current application
list folder "Work" without invisibles
--> {"Page4 Folder", "PAGE4BUILDER", "Users", "zz_LastFolder"}
Result:
error "Can’t get physical size of \"Page4 Folder\"." number -1728 from «class phys» of "Page4 Folder"
Now I tested the tell system event portion in another editor with this code
set aFolder to path to home folder
tell application "System Events"
set folderSize to (physical size of aFolder) div 1024
end tell
and got the right result. So I think that I can't get the size because it is not showing the path to each of these items, just the name of them. Is there a way to set a variable to the path to each of the items it finds? I think then it'll get the sizes right....
Thanks!
Andrew -
I recently changed my apple id and both my iphone 3Gs and Ipad 2 when synced went straight back to my old id name for my app store how do I change it to the new one and keep it that way?
Try going into your account details on iTunes, change your info there, then sync your devices.
-
Computer Name Reverting to Old Name
I have a Mac Mini running Server and use it for Profile Manager, File Sharing, Time Machine, VPN, DNS, and Open Directory.
There are about 20 machines setup on this domain and I ran into an issue with a MacBook I wiped and am trying to use for a different user. I wiped the HDD and reloaded Mavericks. I can join the domain and enroll the machine for the new user just fine.
However, once enrolled, the name of the computer is changed (and grayed out) back to the name that was used for the last user.
Because I wiped it and I can change it when it's not on the domain, I know it's coming from the network / serer. But I can't figure out how to fix it.
If I take it off of the domain and delete the profiles that were loaded, I can change it back and it will stick.
If I force a change on the machine itself, logging out and back in reverts it to the old computer name.
Any ideas on how to fix this?It seems that the server is binding to the MAC address and thus changes the name of the computer once connected to the network. So, you could change the MAC address; however, you need to be a super user to do that. Bear in mind the computer has two MAC addresses, one for the Ethernet and the other airport. Also, you would need to do it in Terminal...sudo ifconfig en0 ether 00:01:02:03:04:05 --example.
-
hello, my eyesight issue happens occasionally, from time to time i run multiple apps that use the isight camera. when i close each app the isight camera's green light is still active. When that happens the only way to stop the isight camera is to reboot.
Is there a way to use activity monitor to identify and kill the process controlling the isight? My apologies in advance if this sounds windows (task manager) like.
Thankstqtclipper wrote:
hello, my eyesight issue happens occasionally, from time to time i run multiple apps that use the isight camera...
http://support.apple.
com/kb/HT2411: Your camera can be used by only one application at a time.
(Over time, Apple has changed the built-in camera's name on newer Macs from "iSight" to "FaceTime" and then to "FaceTime HD." Regardless of the name of your Mac's built-in camera, the same info and troubleshooting applies.)
tqtclipper wrote:
... Is there a way to use activity monitor to identify and kill the process controlling the isight? ...
http://support.apple.
com/kb/PH5147: You can quit any process you can see in those listed in the window that opens when you use Activity Mornitor's
Window >
Activity Monitor
menu command.
Message was edited by: EZ Jim
Mac OSX 10.8.3 -
Can you "debug" a form when running on the App. Server?
We recently got a project to do defect fixing of a Oracle Forms 10g application.
They have given us each developer a VM with an app. server, source code etc.
Problem is, we cannot run the form using the Form Builder.
They want us to always make changes to the form, deploy in the app. server and run the form using the Application Menu.
Problem is, how can we do line-by-line debugging in a situation like this?
Normally, we would press the "Run form debug" button to run the form in Forms developer in debug mode.
What is the solution?
Should we ask the owners to give us permission to run the form from Developer?
Or, is there way to do debugging a form when running from app. server?user12240205 wrote:
So Craig, why is it prompting me with a File Open dialog box when it tries to run a DB procedure?
What does the Forms debugger supposed to do? Run it and bring back result?
Because Forms doesn't know how to load the object so it is prompting you to open it. However, since the Forms debugger can't read the source of the database program unit (procedure, package, function) - you can't debug it from Forms. At least, I've never been able to do it and I've tried making Forms open a source file for a database program unit. It basically boils down to the fact that Oracle Forms can only debug objects that are within the scope of the Forms runtime/builder and database program units are not contained within the Forms objects (eg; Forms binary, PL/SQL Library or Menu Module binary). I recommend you "Step-Over" any call to a database program unit when you encounter them in the Forms debugger. The database program unit will take longer than normal to run, but it will eventually finish and take you to the next line of code to be executed.
Craig... -
I upgraded from iPhone 3GS to iPhone 6. Everything converted fine. Yesterday I deleted an app in error. When I downloaded the software it from iTunes ( did this many times on the old 3GS), my account is no longer recognized by the app's host servers (Playtika), even though it did after the initial conversion. Can I go back and re-sync just one app from my old phone?
Try deleting what is called the iPod Photo Cache.
http://support.apple.com/kb/TS1314 -
Getting the variant name when the report program is run in background
Hi All,
How to get the variant name for the report program when run in background? My requirement is to create an email attachement with the name 'variant.XLS', where variant = selection screen variant, when the report program is run in background. The system field SY-SLSET holds the variant name only when run online.
Any pointers to this will be highly appreciated.
Thanks and regards,
Nilesh.Hello Nilesh,
Please find the algo:
1. Call the FM: GET_JOB_RUNTIME_INFO to get the background job details.
2. Select data from TBTCP using these details:
DATA:
FP_EVENTID TYPE BTCEVENTID
FP_EVTPARM TYPE BTCEVTPARM
FP_ACTIVE TYPE BTCXPGFLAG
FP_JOBCNT TYPE BTCJOBCNT
FP_JOBNM TYPE BTCJOB
FP_STEPCNT TYPE BTCSTEPCNT.
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
EVENTID = FP_EVENTID
EVENTPARM = FP_EVTPARM
EXTERNAL_PROGRAM_ACTIVE = FP_ACTIVE
JOBCOUNT = FP_JOBCNT
JOBNAME = FP_JOBNM
STEPCOUNT = FP_STEPCNT
EXCEPTIONS
NO_RUNTIME_INFO = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* Error calling FM: GET_JOB_RUNTIME_INFO
ENDIF.
DATA: FP_VARIANT TYPE BTCVARIANT.
SELECT JOBNAME JOBCOUNT STEPCOUNT VARIANT
FROM TBTCP
INTO TABLE L_IT_TBTCP
WHERE JOBNAME = FP_JOBNM
AND JOBCOUNT = FP_JOBCNT
AND STEPCOUNT = FP_STEPCNT.
IF SY-SUBRC = 0.
SORT L_IT_TBTCP BY JOBNM JOBCNT STEPCNT.
READ TABLE L_IT_TBTCP INTO L_WA_TBTCP INDEX 1.
IF SY-SUBRC = 0.
FP_VARIANT = L_WA_TBTCP-VARIANT.
ENDIF.
ENDIF.
Hope this helps.
BR,
Suhas
Maybe you are looking for
-
I have spent far too much time on this new Ipod touch. my son has a 1st generation i touch and asked for a 4th generation 64 for his birthday today. I got it for him last week. got it all set up after HOURS of time with apple and bestbuy. now that I
-
How do I resolve issue of new version of itunes software not installing on my computer? I get error message when I start the install..
-
Hi gurus, ı have a problem. I need to find the table of the alv shown clicked on the Services for object/attachment list. I know some of the fields come fromm "SOOD" table. Now my problem is that how ı related this table with ANLA-ANLN1. Do you hav
-
Hi, I recently got the iPad air and am using it for schoolwork. The only problem I have run into is when trying to get assignments 2 pages or less off safari there isn't the option to open the PDF file in another application. I have checked other PDF
-
Strange database connection error in JDev 11g.
We are developing an application using J dev 11.1.1.0.1 But suddeny following error occurs. (We don't change anything. Just we copy project to different machine. ) We can connect to database using this connection settings. But when we run the projec